Use local time for both time and date on win

On unix and nacl, both date and time are expressed in local time.
This commit is contained in:
est31 2015-06-06 03:23:34 +02:00
parent 8dde67cf70
commit 26ea12a873
2 changed files with 3 additions and 3 deletions

View file

@ -1832,7 +1832,7 @@ String OS_Windows::get_name() {
OS::Date OS_Windows::get_date() const {
SYSTEMTIME systemtime;
GetSystemTime(&systemtime);
GetLocalTime(&systemtime);
Date date;
date.day=systemtime.wDay;
date.month=Month(systemtime.wMonth);

View file

@ -445,7 +445,7 @@ String OSWinrt::get_name() {
OS::Date OSWinrt::get_date() const {
SYSTEMTIME systemtime;
GetSystemTime(&systemtime);
GetLocalTime(&systemtime);
Date date;
date.day=systemtime.wDay;
date.month=Month(systemtime.wMonth);
@ -457,7 +457,7 @@ OS::Date OSWinrt::get_date() const {
OS::Time OSWinrt::get_time() const {
SYSTEMTIME systemtime;
GetSystemTime(&systemtime);
GetLocalTime(&systemtime);
Time time;
time.hour=systemtime.wHour;