added: TimeZone struct (core)
this class has information about a time zone (utf offset, daylight saving time) and methods for converting between UTC and local time structs User and Config has a TimeZone object System::ToLocal() and System::ToUTC() uses it for converting (depending whether a user is logged or not) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@842 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -65,7 +65,7 @@ int was_enter = 0; // how many enteres there were before
|
||||
void print_date_nice(Info & i, const PT::Date & date)
|
||||
{
|
||||
time_t one_day = 60 * 60 * 24;
|
||||
PT::Date ltm = system->LocalTime(date);
|
||||
PT::Date ltm = system->ToLocal(date);
|
||||
|
||||
if( date + one_day > cur->request->start_time )
|
||||
i.out << DateToStr(ltm.year, ltm.month, ltm.day, ltm.hour, ltm.min, ltm.sec);
|
||||
|
Reference in New Issue
Block a user