Skip to content
This repository was archived by the owner on Feb 22, 2021. It is now read-only.

Commit ae399b6

Browse files
stanvitdfuentes
authored andcommitted
Dividing ecsLogsEvent's time by 1000 (#23)
1 parent a22afbd commit ae399b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/event.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func NewEvent(cwEvent cloudwatchlogs.FilteredLogEvent, group string) Event {
3535
var ecsLogsEvent ecslogs.Event
3636
if err := json.Unmarshal([]byte(*cwEvent.Message), &ecsLogsEvent); err != nil {
3737
ecsLogsEvent = ecslogs.MakeEvent(ecslogs.INFO, *cwEvent.Message)
38-
ecsLogsEvent.Time = time.Unix(*cwEvent.Timestamp, 0)
38+
ecsLogsEvent.Time = ParseAWSTimestamp(cwEvent.Timestamp)
3939
}
4040

4141
return Event{

0 commit comments

Comments
 (0)