How can a Windows program temporarily change its time zone?

后端 未结 8 1798
清酒与你
清酒与你 2021-02-05 20:45

I\'ve written a function to return the time_t value corresponding to midnight on a given day. When there is no midnight for a given day, it returns the earliest tim

8条回答
  •  清歌不尽
    2021-02-05 21:20

    Install a hook to GetTimeZoneInformation, which overrides system data with your own preferences.

提交回复
热议问题