05-07-2007
11,728,
1,345
Join Date: Feb 2004
Last Activity: 8 May 2020, 9:07 AM EDT
Location: NM
Posts: 11,728
Thanks Given: 903
Thanked 1,345 Times in 1,201 Posts
/usr/share/lib/zoneinfo/Australia/<timezone name>
Can you find a NSW file in the zoneinfo directory? It sounds like it is not there. Or maybe it has some issues, possibly protection.
Plus, DO NOT set time back and forth like that, you can cause cron jobs to do unexpected things. And mess up nightly processing.
UNIX time is kept in seconds since Jan 1 1970. Daylight time changes do not change that count. Changing the date does. The system uses files in /usr/share/lib/zoneinfo/Australia/.... to display the time based on UTC calculated from the number of seconds.
You should set the date (in seconds) to match UTC, whatever that may be.
However use date -a to do that, it is less likely to screw up batch jobs.
You can manually set the timezone using the results of tzselect. It asks questions. tzdump should let you see what /usr/share/lib/zoneinfo/Australia/NSW thinks about DST, if the file is okay.
Last edited by jim mcnamara; 05-07-2007 at 09:01 AM..