alaurenz / metrobike

0 stars 1 forks source link

timestampTo12HourTime in Utility returns the time for the wrong Locale. #154

Closed coreyh3 closed 11 years ago

coreyh3 commented 11 years ago

You need to use one of the factory methods in DateFormat instead of SimpleDateFormat

coreyh3 commented 11 years ago

It looks like it is returning the time in GMT and not GMT-7.

CoolCapri commented 11 years ago

How about using hardcoded time (so that we don't have to consider time zone) since this test is just checking format.

coreyh3 commented 11 years ago

Its now returning GMT-7. The test was expecting GMT-7 and the code was returning GMT. The method did note it was returning GMT. Either way, if you want to change it back to GMT just remove the line that sets the Timezone.