File tree 1 file changed +4
-2
lines changed
src/edu/stanford/nlp/time
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 14
14
15
15
import java .lang .reflect .Method ;
16
16
import java .text .SimpleDateFormat ;
17
+ import java .time .Year ;
17
18
import java .util .*;
18
19
import java .util .regex .MatchResult ;
19
20
import java .util .regex .Matcher ;
@@ -628,8 +629,9 @@ public TimeZoneComponent(Locale locale)
628
629
}
629
630
630
631
private static void updateTimeZoneNames (Locale locale ) {
631
- long time1 = new SUTime .IsoDate (2013 ,1 ,1 ).getJodaTimeInstant ().getMillis ();
632
- long time2 = new SUTime .IsoDate (2013 ,6 ,1 ).getJodaTimeInstant ().getMillis ();
632
+ int year = Year .now ().getValue ();
633
+ long time1 = new SUTime .IsoDate (year ,1 ,1 ).getJodaTimeInstant ().getMillis ();
634
+ long time2 = new SUTime .IsoDate (year ,6 ,1 ).getJodaTimeInstant ().getMillis ();
633
635
CollectionValuedMap <String ,DateTimeZone > tzMap = new CollectionValuedMap <>();
634
636
for (DateTimeZone dtz :TimeZoneIdComponent .timeZonesById .values ()) {
635
637
// standard timezones
You can’t perform that action at this time.
0 commit comments