From cba9d74bec5722db9079ecb8b5d4fc4bcb757a54 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 8 Nov 2019 23:48:42 +0100 Subject: Fix incorrect LocalTime strings when timezone is behind UTC and not an integer number of hours. --- src/local_time.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/local_time.h') diff --git a/src/local_time.h b/src/local_time.h index ad55ad5a..20658eb4 100644 --- a/src/local_time.h +++ b/src/local_time.h @@ -84,8 +84,11 @@ private: int _second; ///< second number of the minute (0-59) int _millisecond; ///< millisecond number of the second (0-999) - int _tz_hour; ///< hours by which this time is offset from UTC - int _tz_minute; ///< minutes by which this time is offset from UTC + int _tz_hour; ///< hours by which this time is offset from UTC; can be negative + /** Minutes by which this time is offset from UTC; if _tz_hour is negative + * this will be either 0 or negative. + */ + int _tz_minute; }; std::ostream& -- cgit v1.2.3