summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/local_time.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/local_time.cc b/src/local_time.cc
index c8576584..1bedb9bd 100644
--- a/src/local_time.cc
+++ b/src/local_time.cc
@@ -281,6 +281,8 @@ LocalTime::operator== (LocalTime const & other) const
bool
LocalTime::operator< (LocalTime const & other) const
{
+ DCP_ASSERT(_offset == other._offset);
+
if (_year != other._year) {
return _year < other._year;
}