Modify

Opened 3 years ago

Closed 3 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

Description

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 3 years ago.

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by michael2402

comment:1 Changed 3 years ago by Don-vip

Milestone: 16.06

comment:2 Changed 3 years ago by Don-vip

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
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.