summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-04-30 14:18:46 +0100
committerCarl Hetherington <cth@carlh.net>2015-04-30 14:18:46 +0100
commitedf35a7acb05289dc024733efd6e13205def5174 (patch)
treec3247adb61671e56bb5b02a1b6e467bb60e8432b
parent6d52a032276e7de4bf1c8630f5a9c1b35b0173d7 (diff)
Fix incorrect day-of-month in LocalTime.
-rw-r--r--src/local_time.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local_time.cc b/src/local_time.cc
index fe58c077..0bbddf43 100644
--- a/src/local_time.cc
+++ b/src/local_time.cc
@@ -34,7 +34,7 @@ LocalTime::LocalTime ()
_year = tm->tm_year + 1900;
_month = tm->tm_mon + 1;
- _day = tm->tm_mday + 1;
+ _day = tm->tm_mday;
_hour = tm->tm_hour;
_minute = tm->tm_min;
_second = tm->tm_sec;