You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this unit test has been passing until recently, only real change I can think of is we recently fell back.
Below now returns 10am, instead of 9am.
Date t = MyDateUtils.getInstance().parseDatePhrase("America/New_York", "tomorrow 9am");
public Date parseDatePhrase(String timeZoneName, String s) {
Date ret = null;
if (timeZoneName == null)
timeZoneName = "America/New_York";
try {
Parser parser = new Parser(TimeZone.getTimeZone(timeZoneName));
List<DateGroup> groups = parser.parse(s);
Date tmpDate = groups.get(0).getDates().get(0);
ret = tmpDate;
} catch (Exception e) {
LOG.log(Level.SEVERE, e.getMessage(), e);
}
return ret;
}
are you handling the offset ?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi, this unit test has been passing until recently, only real change I can think of is we recently fell back.
Below now returns 10am, instead of 9am.
are you handling the offset ?
Thanks!
The text was updated successfully, but these errors were encountered: