Tuesday, February 25, 2020

Timezones on Linux and Windows 


When working on teams who run different development operating systems, tests might fail.
This happens when the tests is os dependent like timezones.
Example : setting the timezone string like this will not work on windows:

TimezoneString = "America/Los_Angeles"

The fix for this is:

This will allow the timezone to be set correctly for both Linux and Windows envionments.

I hope this helps :)