Skip to content

Commit

Permalink
add timezone to 'parseReadable' test to make it succeed independent o…
Browse files Browse the repository at this point in the history
…f the timezone it is run in
  • Loading branch information
krogeman committed Sep 17, 2012
1 parent 3a66770 commit ad7a0c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/com/netflix/asgard/TimeTests.groovy
Expand Up @@ -30,7 +30,7 @@ class TimeTests extends GroovyTestCase {
}

void testParseReadable() {
DateTime parsedDateTime = Time.parse('2011-04-20 16:18:20 PDT')
DateTime parsedDateTime = Time.parse('2011-04-20 16:18:20 HAST').withZone(DateTimeZone.forID('US/Hawaii'))
assert 2011 == parsedDateTime.year
assert 4 == parsedDateTime.monthOfYear
assert 20 == parsedDateTime.dayOfMonth
Expand Down

0 comments on commit ad7a0c3

Please sign in to comment.