removed: dependencies to 'tz' system structure
now we are using PT::Date from pikotools git-svn-id: svn://ttmath.org/publicrep/winix/trunk@839 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* Copyright (c) 2008-2012, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
@@ -340,15 +340,15 @@ void dir_last_url_is(Info & i)
|
||||
|
||||
void dir_last_date_creation(Info & i)
|
||||
{
|
||||
tm rtm = system->LocalTime(cur->request->dir_tab.back()->date_creation);
|
||||
i.out << DateToStr(rtm.tm_year + 1900, rtm.tm_mon + 1, rtm.tm_mday, rtm.tm_hour, rtm.tm_min, rtm.tm_sec);
|
||||
PT::Date date = system->LocalTime(cur->request->dir_tab.back()->date_creation);
|
||||
i.out << DateToStr(date.year, date.month, date.day, date.hour, date.min, date.sec);
|
||||
}
|
||||
|
||||
|
||||
void dir_last_date_modification(Info & i)
|
||||
{
|
||||
tm rtm = system->LocalTime(cur->request->dir_tab.back()->date_modification);
|
||||
i.out << DateToStr(rtm.tm_year + 1900, rtm.tm_mon + 1, rtm.tm_mday, rtm.tm_hour, rtm.tm_min, rtm.tm_sec);
|
||||
PT::Date date = system->LocalTime(cur->request->dir_tab.back()->date_modification);
|
||||
i.out << DateToStr(date.year, date.month, date.day, date.hour, date.min, date.sec);
|
||||
}
|
||||
|
||||
|
||||
@@ -367,15 +367,10 @@ void dir_last_date_modification_nice(Info & i)
|
||||
|
||||
void dir_last_dates_equal(Info & i)
|
||||
{
|
||||
tm * ptm1 = &cur->request->dir_tab.back()->date_creation;
|
||||
tm * ptm2 = &cur->request->dir_tab.back()->date_modification;
|
||||
PT::Date & date1 = cur->request->dir_tab.back()->date_creation;
|
||||
PT::Date & date2 = cur->request->dir_tab.back()->date_modification;
|
||||
|
||||
i.res = ptm1->tm_year == ptm2->tm_year &&
|
||||
ptm1->tm_mon == ptm2->tm_mon &&
|
||||
ptm1->tm_mday == ptm2->tm_mday &&
|
||||
ptm1->tm_hour == ptm2->tm_hour &&
|
||||
ptm1->tm_min == ptm2->tm_min &&
|
||||
ptm1->tm_sec == ptm2->tm_sec;
|
||||
i.res = date1 == date2;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user