KBEC-00099 - Setting the ElectricFlow Web Server time zone

Summary

ElectricFlow stores all times internally using UTC (also known as Zulu time.) The ElectricFlow Web Server translates the time to the local time zone based on the time zone settings in the operating system of the machine where the Web Server is running.

There is a known flaw in the interaction of PHP with Windows, such that it does not handle certain operating system time zones correctly. If the Web Server is running on a machine that is set for one of these time zones, users connected to that Web Server will see all times displayed as UTC times, instead of in the Web Server's time zone.

Solution

The workaround is to set the PHP "timezone_identifier" explicitly in config.php.

To set the time zone, use a text editor to modify

C:\Program Files\Electric Cloud\ElectricCommander\apache\htdocs\commander\config.php

In the file, add a line anywhere between the opening and closing PHP tags

date_default_timezone_set("<timezone_identifier>");

Examples

To set the time zone for Taipei, add

date_default_timezone_set("Asia/Taipei");

See Also

For a complete "List of Supported Timezones", see http://us2.php.net/manual/en/timezones.php

Applies to

  • OS versions: Windows
Have more questions? Submit a request

Comments

Powered by Zendesk