From fe2f1605f186824650abdaf85037a15c301b1e55 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Wed, 14 Dec 2011 20:35:19 +0000 Subject: [PATCH] changed: core/misc: date format in Time() methods git-svn-id: svn://ttmath.org/publicrep/winix/trunk@783 e52654a7-88a9-db11-a3e9-0013d4bc506e --- core/misc.cpp | 2 ++ db/dbbase.cpp | 2 ++ 2 files changed, 4 insertions(+) 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? */