Skip to content

A .NET apphost that runs in a custom time zone. Useful for testing apps in different time zones w/o rebooting nor changing Windows time zone.

License

Notifications You must be signed in to change notification settings

smourier/TimeZoneChanger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TimeZoneChanger

A .NET apphost that runs in a custom time zone. Useful for testing different time zones w/o rebooting.

For example, it can be used to test an ASP.NET server app (like a Kestrel one) is correctly developped/configured to run in any time zone in the world.

Note 1: TestZoneChange is a console app, I'm not sure what it will do for a Windows GUI app (like Winforms, WPF, etc.).

Note 2: It currently only work for x64 but it's probably easy to port it to other architectures. It also works on Windows 10+ only and I have no idea if it could be ported to other OSes.

Note 3: Using this tool doesn't require admin rights.

How to use it?

It's very simple. For example, the following command line:

TimeZoneChanger.exe d:\somePath\someDll.dll Europe/Paris arg1 arg2

Will load some.dll (compiled as a .NET application) in the "Europe/Paris" time zone (eq to "Romance Stantard Time"). Any other following parameters (arg1, etc.) will be passed to the .NET app in the .dll in the Main arguments.

About

A .NET apphost that runs in a custom time zone. Useful for testing apps in different time zones w/o rebooting nor changing Windows time zone.

Topics

Resources

License

Stars

Watchers

Forks