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,10 +2,10 @@
|
||||
|
||||
createthread.o: createthread.h ../../functions/functionbase.h
|
||||
createthread.o: ../../core/item.h ../../../pikotools/space/space.h
|
||||
createthread.o: ../../db/db.h ../../db/dbbase.h ../../db/dbconn.h
|
||||
createthread.o: ../../db/dbtextstream.h ../../core/textstream.h
|
||||
createthread.o: ../../core/misc.h ../../core/item.h ../../core/requesttypes.h
|
||||
createthread.o: ../../../pikotools/date/date.h ../../core/error.h
|
||||
createthread.o: ../../../pikotools/date/date.h ../../db/db.h
|
||||
createthread.o: ../../db/dbbase.h ../../db/dbconn.h ../../db/dbtextstream.h
|
||||
createthread.o: ../../core/textstream.h ../../core/misc.h ../../core/item.h
|
||||
createthread.o: ../../core/requesttypes.h ../../core/error.h
|
||||
createthread.o: ../../../pikotools/space/spaceparser.h
|
||||
createthread.o: ../../../pikotools/space/space.h ../../db/dbitemquery.h
|
||||
createthread.o: ../../db/dbitemcolumns.h ../../core/user.h ../../core/group.h
|
||||
@@ -58,11 +58,11 @@ createthread.o: ../../functions/uname.h ../../functions/upload.h
|
||||
createthread.o: ../../functions/uptime.h ../../functions/who.h
|
||||
createthread.o: ../../functions/vim.h ../../core/htmlfilter.h
|
||||
funthread.o: ../../core/misc.h ../../core/item.h ../../core/requesttypes.h
|
||||
funthread.o: funthread.h ../../functions/functionbase.h ../../core/item.h
|
||||
funthread.o: ../../../pikotools/date/date.h funthread.h
|
||||
funthread.o: ../../functions/functionbase.h ../../core/item.h
|
||||
funthread.o: ../../../pikotools/space/space.h ../../db/db.h ../../db/dbbase.h
|
||||
funthread.o: ../../db/dbconn.h ../../db/dbtextstream.h
|
||||
funthread.o: ../../core/textstream.h ../../core/misc.h
|
||||
funthread.o: ../../../pikotools/date/date.h ../../core/error.h
|
||||
funthread.o: ../../core/textstream.h ../../core/misc.h ../../core/error.h
|
||||
funthread.o: ../../../pikotools/space/spaceparser.h
|
||||
funthread.o: ../../../pikotools/space/space.h ../../db/dbitemquery.h
|
||||
funthread.o: ../../db/dbitemcolumns.h ../../core/user.h ../../core/group.h
|
||||
@@ -92,10 +92,11 @@ funthread.o: ../../core/threadmanager.h ../../core/synchro.h tdb.h thread.h
|
||||
funthread.o: ../../db/dbbase.h threadinfo.h
|
||||
init.o: tdb.h thread.h ../../db/dbbase.h ../../core/error.h reply.h
|
||||
init.o: ../../functions/functionbase.h ../../core/item.h
|
||||
init.o: ../../../pikotools/space/space.h ../../db/db.h ../../db/dbbase.h
|
||||
init.o: ../../db/dbconn.h ../../db/dbtextstream.h ../../core/textstream.h
|
||||
init.o: ../../core/misc.h ../../core/item.h ../../core/requesttypes.h
|
||||
init.o: ../../../pikotools/date/date.h ../../../pikotools/space/spaceparser.h
|
||||
init.o: ../../../pikotools/space/space.h ../../../pikotools/date/date.h
|
||||
init.o: ../../db/db.h ../../db/dbbase.h ../../db/dbconn.h
|
||||
init.o: ../../db/dbtextstream.h ../../core/textstream.h ../../core/misc.h
|
||||
init.o: ../../core/item.h ../../core/requesttypes.h
|
||||
init.o: ../../../pikotools/space/spaceparser.h
|
||||
init.o: ../../../pikotools/space/space.h ../../db/dbitemquery.h
|
||||
init.o: ../../db/dbitemcolumns.h ../../core/user.h ../../core/group.h
|
||||
init.o: ../../core/dircontainer.h ../../core/ugcontainer.h ../../core/log.h
|
||||
@@ -147,10 +148,10 @@ init.o: ../../templates/indexpatterns.h ../../templates/patterns.h
|
||||
init.o: ../../templates/changepatterns.h ../../templates/htmltextstream.h
|
||||
init.o: ../../core/sessionmanager.h templates.h
|
||||
reply.o: reply.h ../../functions/functionbase.h ../../core/item.h
|
||||
reply.o: ../../../pikotools/space/space.h ../../db/db.h ../../db/dbbase.h
|
||||
reply.o: ../../db/dbconn.h ../../db/dbtextstream.h ../../core/textstream.h
|
||||
reply.o: ../../core/misc.h ../../core/item.h ../../core/requesttypes.h
|
||||
reply.o: ../../../pikotools/date/date.h ../../core/error.h
|
||||
reply.o: ../../../pikotools/space/space.h ../../../pikotools/date/date.h
|
||||
reply.o: ../../db/db.h ../../db/dbbase.h ../../db/dbconn.h
|
||||
reply.o: ../../db/dbtextstream.h ../../core/textstream.h ../../core/misc.h
|
||||
reply.o: ../../core/item.h ../../core/requesttypes.h ../../core/error.h
|
||||
reply.o: ../../../pikotools/space/spaceparser.h
|
||||
reply.o: ../../../pikotools/space/space.h ../../db/dbitemquery.h
|
||||
reply.o: ../../db/dbitemcolumns.h ../../core/user.h ../../core/group.h
|
||||
@@ -203,11 +204,12 @@ reply.o: ../../templates/patterncacher.h ../../templates/indexpatterns.h
|
||||
reply.o: ../../templates/patterns.h ../../templates/changepatterns.h
|
||||
reply.o: ../../templates/htmltextstream.h ../../core/sessionmanager.h
|
||||
showthreads.o: showthreads.h ../../functions/functionbase.h ../../core/item.h
|
||||
showthreads.o: ../../../pikotools/space/space.h ../../db/db.h
|
||||
showthreads.o: ../../db/dbbase.h ../../db/dbconn.h ../../db/dbtextstream.h
|
||||
showthreads.o: ../../../pikotools/space/space.h
|
||||
showthreads.o: ../../../pikotools/date/date.h ../../db/db.h ../../db/dbbase.h
|
||||
showthreads.o: ../../db/dbconn.h ../../db/dbtextstream.h
|
||||
showthreads.o: ../../core/textstream.h ../../core/misc.h ../../core/item.h
|
||||
showthreads.o: ../../core/requesttypes.h ../../../pikotools/date/date.h
|
||||
showthreads.o: ../../core/error.h ../../../pikotools/space/spaceparser.h
|
||||
showthreads.o: ../../core/requesttypes.h ../../core/error.h
|
||||
showthreads.o: ../../../pikotools/space/spaceparser.h
|
||||
showthreads.o: ../../../pikotools/space/space.h ../../db/dbitemquery.h
|
||||
showthreads.o: ../../db/dbitemcolumns.h ../../core/user.h ../../core/group.h
|
||||
showthreads.o: ../../core/dircontainer.h ../../core/ugcontainer.h
|
||||
@@ -238,13 +240,13 @@ showthreads.o: ../../core/synchro.h tdb.h thread.h ../../db/dbbase.h
|
||||
showthreads.o: threadinfo.h
|
||||
tdb.o: tdb.h thread.h ../../db/dbbase.h ../../core/error.h ../../core/log.h
|
||||
templates.o: threadinfo.h ../../core/item.h ../../../pikotools/space/space.h
|
||||
templates.o: ../../core/system.h ../../core/job.h ../../core/basethread.h
|
||||
templates.o: ../../core/synchro.h ../../core/dirs.h ../../core/item.h
|
||||
templates.o: ../../core/dircontainer.h ../../db/db.h ../../db/dbbase.h
|
||||
templates.o: ../../db/dbconn.h ../../db/dbtextstream.h
|
||||
templates.o: ../../core/textstream.h ../../core/misc.h
|
||||
templates.o: ../../core/requesttypes.h ../../../pikotools/date/date.h
|
||||
templates.o: ../../core/error.h ../../../pikotools/space/spaceparser.h
|
||||
templates.o: ../../../pikotools/date/date.h ../../core/system.h
|
||||
templates.o: ../../core/job.h ../../core/basethread.h ../../core/synchro.h
|
||||
templates.o: ../../core/dirs.h ../../core/item.h ../../core/dircontainer.h
|
||||
templates.o: ../../db/db.h ../../db/dbbase.h ../../db/dbconn.h
|
||||
templates.o: ../../db/dbtextstream.h ../../core/textstream.h
|
||||
templates.o: ../../core/misc.h ../../core/requesttypes.h ../../core/error.h
|
||||
templates.o: ../../../pikotools/space/spaceparser.h
|
||||
templates.o: ../../../pikotools/space/space.h ../../db/dbitemquery.h
|
||||
templates.o: ../../db/dbitemcolumns.h ../../core/user.h ../../core/group.h
|
||||
templates.o: ../../core/dircontainer.h ../../core/ugcontainer.h
|
||||
@@ -298,13 +300,13 @@ templates.o: ../../templates/patterncacher.h ../../templates/indexpatterns.h
|
||||
templates.o: ../../templates/patterns.h ../../templates/changepatterns.h
|
||||
templates.o: ../../templates/htmltextstream.h ../../core/sessionmanager.h
|
||||
threadinfo.o: threadinfo.h ../../core/item.h ../../../pikotools/space/space.h
|
||||
threadinfo.o: ../../core/system.h ../../core/job.h ../../core/basethread.h
|
||||
threadinfo.o: ../../core/synchro.h ../../core/dirs.h ../../core/item.h
|
||||
threadinfo.o: ../../core/dircontainer.h ../../db/db.h ../../db/dbbase.h
|
||||
threadinfo.o: ../../db/dbconn.h ../../db/dbtextstream.h
|
||||
threadinfo.o: ../../core/textstream.h ../../core/misc.h
|
||||
threadinfo.o: ../../core/requesttypes.h ../../../pikotools/date/date.h
|
||||
threadinfo.o: ../../core/error.h ../../../pikotools/space/spaceparser.h
|
||||
threadinfo.o: ../../../pikotools/date/date.h ../../core/system.h
|
||||
threadinfo.o: ../../core/job.h ../../core/basethread.h ../../core/synchro.h
|
||||
threadinfo.o: ../../core/dirs.h ../../core/item.h ../../core/dircontainer.h
|
||||
threadinfo.o: ../../db/db.h ../../db/dbbase.h ../../db/dbconn.h
|
||||
threadinfo.o: ../../db/dbtextstream.h ../../core/textstream.h
|
||||
threadinfo.o: ../../core/misc.h ../../core/requesttypes.h ../../core/error.h
|
||||
threadinfo.o: ../../../pikotools/space/spaceparser.h
|
||||
threadinfo.o: ../../../pikotools/space/space.h ../../db/dbitemquery.h
|
||||
threadinfo.o: ../../db/dbitemcolumns.h ../../core/user.h ../../core/group.h
|
||||
threadinfo.o: ../../core/dircontainer.h ../../core/ugcontainer.h
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2010, Tomasz Sowa
|
||||
* Copyright (c) 2010-2012, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
@@ -61,13 +61,7 @@ bool ShowThreads::Sort::operator()(const Item * item1, const Item * item2)
|
||||
else
|
||||
{
|
||||
// sorting by date
|
||||
tm tm1 = item1->date_creation;
|
||||
tm tm2 = item2->date_creation;
|
||||
|
||||
time_t time1 = Time(tm1);
|
||||
time_t time2 = Time(tm2);
|
||||
|
||||
return time1 > time2;
|
||||
return item1->date_creation > item2->date_creation;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -270,8 +270,8 @@ void thread_sort_tab_date_creation(Info & i)
|
||||
{
|
||||
if( item_sort_index < thread_info.item_sort_tab.size() )
|
||||
{
|
||||
tm rtm = system->LocalTime(thread_info.item_sort_tab[item_sort_index]->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(thread_info.item_sort_tab[item_sort_index]->date_creation);
|
||||
i.out << DateToStr(date.year, date.month, date.day, date.hour, date.min, date.sec);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -280,8 +280,8 @@ void thread_sort_tab_date_modification(Info & i)
|
||||
{
|
||||
if( item_sort_index < thread_info.item_sort_tab.size() )
|
||||
{
|
||||
tm rtm = system->LocalTime(thread_info.item_sort_tab[item_sort_index]->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(thread_info.item_sort_tab[item_sort_index]->date_modification);
|
||||
i.out << DateToStr(date.year, date.month, date.day, date.hour, date.min, date.sec);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -309,15 +309,10 @@ void thread_sort_tab_dates_equal(Info & i)
|
||||
{
|
||||
if( item_sort_index < thread_info.item_sort_tab.size() )
|
||||
{
|
||||
tm * ptm1 = &thread_info.item_sort_tab[item_sort_index]->date_creation;
|
||||
tm * ptm2 = &thread_info.item_sort_tab[item_sort_index]->date_modification;
|
||||
PT::Date & date1 = thread_info.item_sort_tab[item_sort_index]->date_creation;
|
||||
PT::Date & date2 = thread_info.item_sort_tab[item_sort_index]->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