Skip to content

Commit

Permalink
Merge pull request uPortal-Attic#15 from astik/master
Browse files Browse the repository at this point in the history
fix DateTimeFormatter into test as it doesn't work on JVM with a different locale
  • Loading branch information
drewwills committed Jul 30, 2013
2 parents 79694af + 6141bf3 commit eeb27a8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertFalse;

import java.util.Locale;

import net.fortuna.ical4j.model.component.VEvent;

import org.joda.time.DateMidnight;
Expand All @@ -44,7 +47,7 @@ public void testStartDate() {

DateTimeFormatter df = new DateTimeFormatterBuilder().appendDayOfWeekText()
.appendLiteral(" ").appendMonthOfYearText().appendLiteral(" ")
.appendDayOfMonth(1).toFormatter().withZone(tz);
.appendDayOfMonth(1).toFormatter().withZone(tz).withLocale(Locale.US);

DateTimeFormatter tf = new DateTimeFormatterBuilder().appendClockhourOfHalfday(1)
.appendLiteral(":").appendMinuteOfHour(2).appendLiteral(" ")
Expand Down

0 comments on commit eeb27a8

Please sign in to comment.