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