Message dates display in (apparently) UTC
The following web page may help you: http://kb.mozillazine.org/Time_and_time_zone_settings
To detect your system locale, please run the following commands on Terminal app (/Applications/Utilities/Terminal)
If date command output is not local time, system locale is something wrong.
If date command output is local time properly, Tenfourbird is doing something wrong.
Can you run the following commands on Tenfourbird's Error Console? (Tools > Error Console).
and
The first command will display local time. second will display UTC time.
If you using TenFourFox, please check above commands on TenFourFox's Web Console (Tools > Web Developer > Web Console). This may help to detect where this bug comes from.
Regards.
Hi there,
'date' does display the correct date and time zone.
'locale' displays the following:
$ locale LANG="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_CTYPE="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_ALL=
I went ahead and ran both commands you requested in both programs. Here are the results:
Tenfourbird 24.3.0: ------------------- Date(): Mon Mar 03 2014 00:52:06 GMT+0000 (UTC) (new Date()).toUTCString(): Mon, 03 Mar 2014 00:52:34 GMT TenFourFox 24.3.0: ------------------ Date(): "Sun Mar 02 2014 16:54:44 GMT-0800 (PST)" (new Date()).toUTCString(): "Mon, 03 Mar 2014 00:55:17 GMT"
Thank you for testing.
Your result is suggested Tenfourbird has timezone related bug.
I need more information to find out cause of this bug.
Can you check the following?:
Is this bug also happened on other versions of Tenfourbird? (17.0.11, 24.2.0, etc...)
Local timezone is changeable by environment variable TZ. So I want to check TZ variable on Tenfourbird.
Please run the following command on Tenfourbird's Error Console:
If above command returns true, please also run the following command and check result:
Please run these commands on TenFourFox's Browser Console (Tools > Web Developer > Browser Console). (These commands are not runnable on Web Console)
Thanks.
I have not had a chance to install older versions yet (is it possible to do so without overwriting settings on my existing installation)? However, for Tenfourbird 24.3.0 in error console:
I run Components.classes["@mozilla.org/process/environment;1"].getService(Components.interfaces.nsIEnvironment).exist("TZ")
And I get:
Error: TypeError: Components.classes['@mozilla.org/process/environment;1'].getService(...).exist is not a function Source File: javascript:%20Components.classes["@mozilla.org/process/environment;1"].getService(Components.interfaces.nslEnvironment).exist("TZ")
And when I run Components.classes["@mozilla.org/process/environment;1"].getService(Components.interfaces.nsIEnvironment).get("TZ")
I get: UTC
For Tenfourfox when I run the first command in Browser Console (24.3.0) I get the same result as above, "foobar.exist is not a function."
When I run the second command, Components.classes["@mozilla.org/process/environment;1"].getService(Components.interfaces.nsIEnvironment).get("TZ") I get an empty string "" as the result.
I have also noticed some time-related problems with Enigmail. Sometimes if you tell it to leave the key in memory for a few minutes, if the computer goes to sleep it will keep the key in memory for many hours. This is obviously bad. I don't know if it is related and haven't been able to 100% reproduce it, but let me know if you would like me to open a ticket so we can investigate.
Oops.., I mistook the command spell...
Proper command is:
But your test result will already reveal cause of this problem.
For some reason, Tenfourbird are affected by the environ variable TZ. But, TenFourFox is not affected. This is a mystery...
But there are possibilities:
Do you startup Tenfourbird by automatical way? (Login Items, launcher app or any script, etc...)
LSEnvironment key in the Info.plist is another way of setting TZ.
How to check LSEnvironment key:
Execute the following command in Terminal (If you install Tenfourbird at /Applications)
Thanks.
When using Tenfourbird, lately all the messages in the message list display their 'Date' field in the wrong time. This time appears to be UTC although I have not diligently checked. However, it is 7 or 8 hours off from my system time zone, America/Los_Angeles. OS X 10.5.8, Tenfourbird 24.3.0 for PPC 7450 on a Powerbook G4.
Thank you for all your effort in maintaining Tenfourbird, it is really useful for PPC users.