Opened 8 years ago

Closed 8 years ago

#13045 closed enhancement (fixed)

[Patch] Inconsistent timezone handling in tests/nmea

Reported by: michael2402 Owned by: team
Priority: normal Milestone: 16.06
Component: Unit tests Version:
Keywords: gsoc-core Cc: Don-vip, bastiK, stoecker


Currently, some tests fail because the timezone handling in JOSM is inconsistent.

In NMEA, the time is in UTC. However NmeaReader, uses SimpleDateFormat with the default (local) timezone.

DateUtils.fromDate and DateUtils.fromString use UTC.

The exif test assumed that the java time zone was set to Europe/Berlin.

Attachments (1)

patch-test-fix-timezone.patch (8.8 KB ) - added by michael2402 8 years ago.

Download all attachments as: .zip

Change History (3)

by michael2402, 8 years ago

comment:1 by Don-vip, 8 years ago

Milestone: 16.06

comment:2 by Don-vip, 8 years ago

Resolution: fixed
Status: newclosed

In 10475/josm:

fix #13045 - Inconsistent timezone handling in tests/nmea (patch by michael2402) - gsoc-core

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.