Skip to content

Commit 3cb9309

Browse files
authored
fix time parsing for scheduled maintenance events (#148)
1 parent 839ee86 commit 3cb9309

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/interruptionevent/scheduled-event.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const (
2727
ScheduledEventKind = "SCHEDULED_EVENT"
2828
scheduledEventStateCompleted = "completed"
2929
scheduledEventStateCanceled = "canceled"
30-
scheduledEventDateFormat = "02 Jan 2006 15:04:05 GMT"
30+
scheduledEventDateFormat = "2 Jan 2006 15:04:05 GMT"
3131
instanceStopCode = "instance-stop"
3232
systemRebootCode = "system-reboot"
3333
instanceRebootCode = "instance-reboot"

test/ec2-metadata-test-proxy/cmd/ec2-metadata-test-proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
const (
2626
interruptionNoticeDelayConfigKey = "INTERRUPTION_NOTICE_DELAY"
2727
interruptionNoticeDelayDefault = "0"
28-
scheduledActionDateFormat = "02 Jan 2006 15:04:05 GMT"
28+
scheduledActionDateFormat = "2 Jan 2006 15:04:05 GMT"
2929
spotInstanceActionFlag = "ENABLE_SPOT_ITN"
3030
spotInstanceActionPath = "/latest/meta-data/spot/instance-action"
3131
scheduledMaintenanceEventFlag = "ENABLE_SCHEDULED_MAINTENANCE_EVENTS"

0 commit comments

Comments
 (0)