diff --git a/core/misc.cpp b/core/misc.cpp index 52f3599..e8bd3c5 100755 --- a/core/misc.cpp +++ b/core/misc.cpp @@ -980,6 +980,8 @@ tm Time(time_t par) res.tm_hour = ptm->tm_hour; res.tm_min = ptm->tm_min; res.tm_sec = ptm->tm_sec; + res.tm_wday = ptm->tm_wday; + res.tm_yday = ptm->tm_yday; } return res; diff --git a/db/dbbase.cpp b/db/dbbase.cpp index 393fcd7..816ae4e 100755 --- a/db/dbbase.cpp +++ b/db/dbbase.cpp @@ -312,6 +312,8 @@ tm t; t.tm_min = Toi(str + 14); /* minutes (0 - 59) */ t.tm_sec = Toi(str + 17); /* seconds (0 - 60) */ + t = Time(Time(t)); + // t.tm_wday = 0; /* day of week (Sunday = 0) */ // t.tm_yday = 0; /* day of year (0 - 365) */ // t.tm_isdst = 0; /* is summer time in effect? */