Closed coreyh3 closed 11 years ago
It looks like it is returning the time in GMT and not GMT-7.
How about using hardcoded time (so that we don't have to consider time zone) since this test is just checking format.
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.
You need to use one of the factory methods in DateFormat instead of SimpleDateFormat