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:48:42 +0100 |
| commit | 1ac4cb1a8fe20a0b60408006a7a9f92714f140ca (patch) | |
| tree | 6a2067f0768c1812f5a1dc4c1047cb7d58c89f90 /src/local_time.h | |
| parent | 74b6739ea1710b8b26ca17d9096ba5f6baa5858d (diff) | |
Fix incorrect LocalTime strings when timezone is behind UTC and not an integer number of hours.
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& |
