samskivert / jmustache

A Java implementation of the Mustache templating language.
Other
841 stars 128 forks source link

Fix broken test which depends on local timezone #68

Closed monae closed 9 years ago

monae commented 9 years ago

On my machine, the test fails with the message:

[error] Test com.samskivert.mustache.MustacheTest.testCustomFormatter failed: expected:<Date: 2014/01/0[8]> but was:<Date: 2014/01/0[9]>

This patch explicitly sets TimeZone of DateFormat and fixes the problem.