struct Item has modification_user_id (long) now
this is the id of a user who has modified the item recently this is only for information, persmissions don't use it git-svn-id: svn://ttmath.org/publicrep/winix/trunk@614 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -17,11 +17,14 @@ namespace TemplatesMisc
|
||||
{
|
||||
|
||||
|
||||
void print_date_nice(Ezc::Info & i, tm * ptm)
|
||||
void print_date_nice(Ezc::Info & i, const tm * ptm)
|
||||
{
|
||||
time_t t = mktime(ptm);
|
||||
tm tm_temp(*ptm);
|
||||
|
||||
time_t t = mktime(&tm_temp); // mktime do something in tm_temp
|
||||
time_t now = time(0);
|
||||
time_t one_day = 60 * 60 * 24;
|
||||
|
||||
|
||||
if( t + one_day > now )
|
||||
i.out << DateToStr(ptm->tm_year + 1900, ptm->tm_mon + 1, ptm->tm_mday, ptm->tm_hour, ptm->tm_min, ptm->tm_sec);
|
||||
|
Reference in New Issue
Block a user