From 42120ed626c0d18bc1e1738678dbd1fa96481f04 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 8 Oct 2009 19:41:38 +0000 Subject: Introduce a new struct TimeDate, replacing struct tm in client code. May lead to compilation issues in ports, which should be trivial to fix, though svn-id: r44793 --- backends/platform/ps2/ps2time.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'backends/platform/ps2/ps2time.cpp') diff --git a/backends/platform/ps2/ps2time.cpp b/backends/platform/ps2/ps2time.cpp index 65b4cb90d7..4da8420478 100644 --- a/backends/platform/ps2/ps2time.cpp +++ b/backends/platform/ps2/ps2time.cpp @@ -106,7 +106,7 @@ void OSystem_PS2::readRtcTime(void) { g_day, g_month, g_year + 2000); } -void OSystem_PS2::getTimeAndDate(struct tm &t) const { +void OSystem_PS2::getTimeAndDate(TimeDate &t) const { uint32 currentSecs = g_timeSecs + (msecCount - g_lastTimeCheck) / 1000; if (currentSecs >= SECONDS_PER_DAY) { @@ -121,6 +121,4 @@ void OSystem_PS2::getTimeAndDate(struct tm &t) const { t.tm_year = g_year + 100; t.tm_mday = g_day; t.tm_mon = g_month - 1; - // tm_wday, tm_yday and tm_isdst are zero for now - t.tm_wday = t.tm_yday = t.tm_isdst = 0; } -- cgit v1.2.3