From 6919bfcb39c4df829edc82dcd30968a4aca3fbee Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 30 Dec 2022 18:12:33 +0100 Subject: Change the behaviour of LocalTime::operator== to make the same time in different time zones equal. Previously different offsets would mean that the times compared as not-equal. --- src/local_time.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/local_time.h') 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 { -- cgit v1.2.3