I
I
ikari812014-10-21 17:22:25
linux
ikari81, 2014-10-21 17:22:25

How to change the time zone programmatically (Windows)?

How to change the time zone programmatically on windows? using winapi and c#?
As an additional option, do the same in Linux (you can use the shell)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2014-10-21
@asand3r

Programmatically? Would a PowerShell solution work? There is also a built-in utility - tzutil.exe:
tzutil /l - will show a list of available time zones.
tzutil /g - will show the current one;
tzutil /s "beltname" - allows you to install a new one.
# I'm sorry, I missed that the solution is needed in C#.

A
Andrey Plax, 2014-10-21
@Hereigo

habrahabr.ru/post/240645

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question