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
Copy file name to clipboardExpand all lines: org.springframework.context/src/main/java/org/springframework/scheduling/support/CronSequenceGenerator.java
+14-8Lines changed: 14 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@
23
23
importjava.util.Date;
24
24
importjava.util.GregorianCalendar;
25
25
importjava.util.List;
26
+
importjava.util.TimeZone;
26
27
27
28
importorg.springframework.util.StringUtils;
28
29
@@ -66,13 +67,17 @@ class CronSequenceGenerator {
66
67
67
68
privatefinalStringexpression;
68
69
70
+
privatefinalTimeZonetimeZone;
71
+
69
72
/**
70
73
* Construct a {@link CronSequenceGenerator} from the pattern provided.
71
74
* @param expression a space-separated list of time fields
75
+
* @param timeZone the TimeZone to use for generated trigger times
72
76
* @throws IllegalArgumentException if the pattern cannot be parsed
0 commit comments