summaryrefslogtreecommitdiff
path: root/src/local_time.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-12-30 18:12:33 +0100
committerCarl Hetherington <cth@carlh.net>2022-12-30 18:12:52 +0100
commit6919bfcb39c4df829edc82dcd30968a4aca3fbee (patch)
tree1909431f491545056fee621f8a6d1bdf0f3fc596 /src/local_time.h
parentef35f6a6c43d2be30b82ca943c56cf06f140d24d (diff)
Change the behaviour of LocalTime::operator== to make the same time in different time zones equal.v1.8.49
Previously different offsets would mean that the times compared as not-equal.
Diffstat (limited to 'src/local_time.h')
-rw-r--r--src/local_time.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/local_time.h b/src/local_time.h
index fdb6fc90..e1baedcc 100644
--- a/src/local_time.h
+++ b/src/local_time.h
@@ -60,6 +60,9 @@ namespace dcp {
* to parse strings of the required format (those that include time zones).
*
* See http://www.w3.org/TR/xmlschema-2/#dateTime
+ *
+ * Note that operator== for this class will return true for times that have different
+ * offsets but are the same actual time.
*/
class LocalTime
{