Timeformats for competitionTime and Product.startDateTime
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TAC Energy |
Confirmed
|
Medium
|
Unassigned |
Bug Description
In addition to bug #599580 ( https:/
The time formats of competitionTime and Product.
Logging says for example:
Mon Jun 28 22:00:00 CEST 2010 for CompetitionTime
2010-06-28 22:00:00.0 for Product.
Would be no serious problem, but it might be the reason for the method Date.equals(Date) not to work properly. When trying to compare those Dates above equals(.) results in false.
Therefore, as in Bug #599580 (current-flag not set) I can't find out, if a product is consumed at the moment. Maybe exactly this leads to the bug with the current-flag.
Ok, I see, the Date.compareTo( Date) method does work in this case... (returns 0 for same time, -1/1 if date is in the past/future)
Still, different time formats are not useful here.
And I don't know, why equals(.) doesn't work....