"Neil Carter" <ps****@swansea.ac.uk> wrote in message
news:cl**********@news.swman.net.uk...
Swansea University Psychology wrote: I have a utility that uses the C library function strftime() to return
the time zone name, but it returns "GMT Standard Time" on one computer,
and "BST" (which it should be at the moment) on the other computer.
"Bob I" <bi*****@yahoo.com> wrote in message
news:41**************@yahoo.com...
Daylight Saving Time box ticked?
Yup! Any other ideas?!
I managed to resolve this by unchecking the Automatically adjust option
checkbox in Date and Time properties (on the machine returning GMT Standard
Time), then clicking OK to close the dialog box, then going back into the
dialog box and rechecking the checkbox and clicking OK again. Strftime("%Z")
on that machine now returns GMT Daylight Time.
The strange thing is that strftime() on the other machine (this machine, in
fact) returns BST.
There are other puzzling things... This machine returns BST even though it
(incorrectly) shows GMT Standard Time in the Date and Time dialog box.
Also, when I turned off the auto-adjust option on the other machine, the
clock did not change its time, but when I tried it on this machine, it went
back one hour. Furthermore, since I tried the same uncheck-check procedure
on this machine, the dialog box now shows GMT Daylight Time, yet strftime()
still returns BST!
Weird.
Neil
--------------------------------------------
Neil Carter Psychology Department
IT Technician University of Wales Swansea
Wales, United Kingdom
http://psy.swansea.ac.uk/staff/Carter/