fixed: there were mktime() used on some dirs Items
so sometimes the time of the dir was changed now for converting tm into time_t use: time_t Time(const tm & par); time_t Time(const tm * par); tm Time(time_t par); from core/misc.h now winix internally use GMT time only when printing it is converted to local user time temporarily all users use the same local time (config: time_zone_offset) (only logs are genereted with local system time) added to system: time_t LocalTime(time_t gmt_time); tm LocalTime(const tm * ptm); tm LocalTime(const tm & ptm); they convert GMT time to local user time git-svn-id: svn://ttmath.org/publicrep/winix/trunk@666 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -273,12 +273,12 @@ functions.o: ../templates/patterncacher.h ../core/item.h
|
||||
functions.o: ../templates/ckeditorgetparser.h ../core/httpsimpleparser.h
|
||||
functions.o: ../core/log.h ../templates/indexpatterns.h
|
||||
functions.o: ../core/sessionmanager.h
|
||||
funthread.o: funthread.h functionbase.h ../core/item.h ../db/db.h
|
||||
funthread.o: ../db/dbbase.h ../db/dbconn.h ../db/dbtextstream.h
|
||||
funthread.o: ../core/textstream.h ../core/error.h ../core/log.h
|
||||
funthread.o: ../db/dbitemquery.h ../db/dbitemcolumns.h ../core/user.h
|
||||
funthread.o: ../core/group.h ../core/thread.h ../core/dircontainer.h
|
||||
funthread.o: ../core/item.h ../core/ugcontainer.h ../core/request.h
|
||||
funthread.o: ../core/misc.h ../core/item.h funthread.h functionbase.h
|
||||
funthread.o: ../core/item.h ../db/db.h ../db/dbbase.h ../db/dbconn.h
|
||||
funthread.o: ../db/dbtextstream.h ../core/textstream.h ../core/error.h
|
||||
funthread.o: ../core/log.h ../db/dbitemquery.h ../db/dbitemcolumns.h
|
||||
funthread.o: ../core/user.h ../core/group.h ../core/thread.h
|
||||
funthread.o: ../core/dircontainer.h ../core/ugcontainer.h ../core/request.h
|
||||
funthread.o: ../core/requesttypes.h ../core/session.h ../core/error.h
|
||||
funthread.o: ../core/user.h ../core/plugindata.h ../core/rebus.h
|
||||
funthread.o: ../core/config.h ../core/confparser.h ../core/htmlfilter.h
|
||||
|
@@ -8,10 +8,10 @@
|
||||
*/
|
||||
|
||||
#include <algorithm>
|
||||
#include "core/misc.h"
|
||||
#include "funthread.h"
|
||||
|
||||
|
||||
|
||||
namespace Fun
|
||||
{
|
||||
|
||||
@@ -46,7 +46,9 @@ size_t i;
|
||||
Item * pdir = system->dirs.GetDir(thread_tab[i].dir_id);
|
||||
|
||||
if( pdir )
|
||||
thread_tab[i].sort = (long)mktime(&pdir->date_creation);
|
||||
thread_tab[i].sort = (unsigned long)Time(pdir->date_creation);
|
||||
else
|
||||
thread_tab[i].sort = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user