[En-Nut-Discussion] Setting Local Time Zone
Dusan Ferbas
dferbas at dfsoft.cz
Thu Apr 15 09:27:19 CEST 2004
Hi Oliver Schulz,
we are using SNTP now. And there was a need for setting time zone. We did
not find a way how to do that.
You fixed _timezone to EST = -05:00:00 . Instead of rewriting this variable
directly I suggest to add following function into crt/tzset.c. Also fn
definition is expected to be added into include/tzset.h
>void set_time_zone(int time_offset)
>{
> _timezone = (long)time_offset * 60L * 60L;
>}
Dusan
More information about the En-Nut-Discussion
mailing list