Time and time zone settings
From MozillaZine Knowledge Base
This page describes how to check your time and time zone in any Mozilla application.
Time and time zone issues are particularly important in e-mail applications (Thunderbird, Mozilla Suite and SeaMonkey) and in calendar applications (Sunbird, Calendar extension and Lightning).
A Mozilla application has no clock of its own. It uses your system clock. Your system clock is controlled by your operating system settings.
Your operating system has two main time settings:
Your time zone has two parts to it:
You can use your Mozilla application to check some of these settings. Some other settings are more difficult to check, and some daylight saving time (DST) issues are too difficult for general-purpose software to resolve. In general, when DST goes into effect and adds one hour, for example, this moves the local time forward by one hour and moves your time zone by +1 hour, thus the time stays the same relative to UTC.
Checking your system time
Check that all four parts of this information are correct.
Checking your time zone
As a further check on your time zone, you can check UTC (GMT).
To check your system's UTC (GMT) date and time, compare it with the date and time on this web page: UTC timezone
Note: The web page is in the United States but you can use it no matter where you are, because UTC is always the same everywhere in the world.
Changing your time and time zone settings
To change your time and time zone settings, use your operating system. The details depend on which operating system you are using. If your operating system supports different desktop programs, then the details might also depend on which desktop you are using.
Either double-click the time in your system tray, or open the Date/Time object in Control Panel.
A Windows bug
A Windows bug can affect time zones in Mozilla applications.
To check your system, use the System Configuration Utility (MSCONFIG) or another method to look for an environment variable named TZ.
One way to check is to open an MS-DOS command prompt, then type the command:
The reply ECHO is on means that TZ is not set, so you do not need to do anything.
If TZ is set, remove it. For example, you might be able to remove it by editing the file C:\AUTOEXEC.BAT and restarting your system.
If some other program needs TZ, use a batch file to set TZ and start that program.
On Mac OS X, please go to System Preferences > Date & Time.
Setting System Time
Times and time zones in e-mail
The date and time of an e-mail are set by the program that sends the e-mail, and stored in the e-mail as a Date header.
To see the original Date header, select the e-mail. Then from the menu bar choose View – Message Source. In the headers at the top of the source, look for the line that begins: Date:
The Date header contains a date and time, but it does not contain complete time zone information—only the offset from GMT. The time that you see in the header is normally the local time in the place where the e-mail was written.
For example, here is a Date header in an e-mail sent from New York at 9:23 AM New York time:
To verify the date and time, you can also check the Received headers. These are stored by the servers that relayed the e-mail between the sender and you.
Any of these headers might be wrong if the computer that stored the header has wrong settings, or if the e-mail is spam with fake headers.
Displayed dates and times
When your e-mail program displays the e-mail's date and time, it normally converts them to your time zone. If your computer's time zone settings are wrong, then you will see the wrong time (and possibly the wrong date).
To turn this conversion off, you can use a preference setting. It affects the headers that you see in e-mails that you open or preview, but it does not affect the Date column in folders.
In your user.js file:
Or in about:config, search for original then set mailnews.display.original_date to the value true.