@@ -66,6 +66,7 @@ func TestScheduledJob_Template(t *testing.T) {
6666 require .Equal (t , template.WorkloadOpts {
6767 WorkloadType : manifestinfo .ScheduledJobType ,
6868 ScheduleExpression : "cron(0 0 * * ? *)" ,
69+ ScheduleTimezone : "UTC" ,
6970 StateMachine : & template.StateMachineOpts {
7071 Timeout : aws .Int (5400 ),
7172 Retries : aws .Int (3 ),
@@ -102,6 +103,7 @@ func TestScheduledJob_Template(t *testing.T) {
102103 AddonsExtraParams : `ServiceName: !GetAtt Service.Name
103104DiscoveryServiceArn: !GetAtt DiscoveryService.Arn` ,
104105 ScheduleExpression : "cron(0 0 * * ? *)" ,
106+ ScheduleTimezone : "UTC" ,
105107 StateMachine : & template.StateMachineOpts {
106108 Timeout : aws .Int (5400 ),
107109 Retries : aws .Int (3 ),
@@ -450,6 +452,7 @@ func TestScheduledJob_Parameters(t *testing.T) {
450452 Dockerfile : "frontend/Dockerfile" ,
451453 },
452454 Schedule : "@daily" ,
455+ Timezone : "GMT" ,
453456 }
454457 testScheduledJobManifest := manifest .NewScheduledJob (baseProps )
455458 testScheduledJobManifest .Count = manifest.Count {
@@ -504,6 +507,10 @@ func TestScheduledJob_Parameters(t *testing.T) {
504507 ParameterKey : aws .String (ScheduledJobScheduleParamKey ),
505508 ParameterValue : aws .String ("cron(0 0 * * ? *)" ),
506509 },
510+ {
511+ ParameterKey : aws .String (ScheduledJobScheduleTimezoneParamKey ),
512+ ParameterValue : aws .String ("GMT" ),
513+ },
507514 }
508515 testCases := map [string ]struct {
509516 httpsEnabled bool
@@ -600,6 +607,7 @@ func TestScheduledJob_SerializedParameters(t *testing.T) {
600607 "EnvName": "test",
601608 "LogRetention": "30",
602609 "Schedule": "cron(0 0 * * ? *)",
610+ "ScheduleTimezone": "UTC",
603611 "TaskCPU": "256",
604612 "TaskCount": "1",
605613 "TaskMemory": "512",
0 commit comments