diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-11-08 23:48:42 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-11-08 23:50:03 +0100 |
| commit | cba9d74bec5722db9079ecb8b5d4fc4bcb757a54 (patch) | |
| tree | 4d573b0ad6a789d993341c8394e46837f2a643b4 /src/local_time.h | |
| parent | fe79aeb6b8d3938db8dc8382b807014be22fc692 (diff) | |
Fix incorrect LocalTime strings when timezone is behind UTC and not an integer number of hours.v1.6.10
Diffstat (limited to 'src/local_time.h')
| -rw-r--r-- | src/local_time.h | 7 |
1 files changed, 5 insertions, 2 deletions
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& |
