Clock of PFsense
-
Hi,
I am a beginner of PFsense and has just built a pfsense router.
I find that the clock is running the other time zone,GMT-8 , although the time zone is properly set as "GMT +8".
In the index page, it displays the current time with "echo date('r');". The result is attached.
In the "System Log", date and time are shown as same as the index page.How can I configure to display the GMT +8 time?
Tat
-
Excerpt from the book:
You will see unexpected behavior if you select one of the GMT offset time zones.The offsets are the
opposite of what you would expect them to be based on their names. For example the GMT-5 zone
is actually GMT plus 5 hours. This comes from the TZ database that FreeBSD and many other Unix
and Unix-like operating systems use.Garrett Wollman described the reason for this in a FreeBSD PR database entry [http://
www.freebsd.org/cgi/query-pr.cgi?pr=24385]:
These zones are included for compatibility with ancient UNIX systems. You are
more likely to convince the TZ database developers to drop them altogether than
you are to get them to change the definitions. In any case, FreeBSD will follow the
practice of the TZ database. -
@cmb:
Excerpt from the book:
You will see unexpected behavior if you select one of the GMT offset time zones.The offsets are the
opposite of what you would expect them to be based on their names. For example the GMT-5 zone
is actually GMT plus 5 hours. This comes from the TZ database that FreeBSD and many other Unix
and Unix-like operating systems use.Garrett Wollman described the reason for this in a FreeBSD PR database entry [http://
www.freebsd.org/cgi/query-pr.cgi?pr=24385]:
These zones are included for compatibility with ancient UNIX systems. You are
more likely to convince the TZ database developers to drop them altogether than
you are to get them to change the definitions. In any case, FreeBSD will follow the
practice of the TZ database.I tried to change the time zone to "GMT +12".
The clock do not change anything. the time is still displayed with -8 -
Some things won't pick up a timezone update until they're restarted, or you reboot the system. We don't recommend the GMT offset zones, pick a named zone or one of them like EST5EDT or similar for DST, depending on where you are in the world.
-
@cmb:
Some things won't pick up a timezone update until they're restarted, or you reboot the system. We don't recommend the GMT offset zones, pick a named zone or one of them like EST5EDT or similar for DST, depending on where you are in the world.
All the problems are solved after time zone was set as "Asia/Hong Kong" and rebooted the system.
Thank you so much, cmb.