File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,8 @@ func parseDate(input string) (time.Time, error) {
361
361
formats := []string {"2006-01-02" ,
362
362
"2006/01/02" ,
363
363
"2006-01-02T15:04:05Z" ,
364
- time .RFC3339Nano , // Format of t.MarshalText() and t.MarshalJSON()
364
+ "2006-01-02 15:04:05 -0700 MST" , // Date format used by AWS for CreateTime on ASGs
365
+ time .RFC3339Nano , // Format of t.MarshalText() and t.MarshalJSON()
365
366
time .RFC3339 ,
366
367
}
367
368
for _ , f := range formats {
Original file line number Diff line number Diff line change @@ -414,6 +414,7 @@ func TestFilter_UnmarshalFilter(t *testing.T) {
414
414
future .Format ("2006-01-02" ),
415
415
future .Format ("2006/01/02" ),
416
416
future .Format ("2006-01-02T15:04:05Z" ),
417
+ future .Format ("2006-01-02 15:04:05.000 +0000 UTC" ),
417
418
future .Format (time .RFC3339Nano ),
418
419
future .Format (time .RFC3339 ),
419
420
},
@@ -422,6 +423,7 @@ func TestFilter_UnmarshalFilter(t *testing.T) {
422
423
past .Format ("2006-01-02" ),
423
424
past .Format ("2006/01/02" ),
424
425
past .Format ("2006-01-02T15:04:05Z" ),
426
+ past .Format ("2006-01-02 15:04:05.14 -0700 MST" ),
425
427
past .Format (time .RFC3339Nano ),
426
428
past .Format (time .RFC3339 ),
427
429
},
You can’t perform that action at this time.
0 commit comments