I have an attribute "date" in a domain object. Last week, I created some
objects with this attribute. Today I created objects again with the same
date value in this attribute. When comparing the dates (=), the result is
false.
Reason is, that in germany, we had a switch from Central European Summer
Time (CEST) (Sommerzeit) to Daylight Saving Time (DST) this weekend.
Date has an attribute "start" which has an instance of DateAndTime. This
DateAndTime object has another value depending on the CEST/DST
2012-10-02T00:00:00+*01:00* (DST)
2012-10-02T00:00:00+*02:00* (CEST)
When I create two Dates with same date, I expect that = evaluates to true,
independent from the CEST/DST. But Date (Timespan) uses
/= comparand
^ self class = comparand class
and: [ *self start = comparand start *
and: [ self duration = comparand duration ]]/
What do you recommend? Create my own compare method? Did I miss something?
--
View this message in context:
http://forum.world.st/Problem-with-Date-comparing-summer-time-CEST-tp4653354.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.