From 341171f326caaccd9677773f14b58fdbe40985ba Mon Sep 17 00:00:00 2001 From: Yurii Rashkovskii Date: Mon, 15 Aug 2016 10:50:07 +0200 Subject: [PATCH] Problem: AWS documentation defines event timestamp as 1970-01-01T00:00:00.000Z (#2440) While Minio is using 20160814T124605Z (See http://docs.aws.amazon.com/AmazonS3/latest/dev/notification-content-structure.html) Solution: adhere to AWS documentation --- event-notifier.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event-notifier.go b/event-notifier.go index 861c930bb..9fccc87bb 100644 --- a/event-notifier.go +++ b/event-notifier.go @@ -60,7 +60,7 @@ func newNotificationEvent(event eventData) NotificationEvent { EventVersion: "2.0", EventSource: "aws:s3", AwsRegion: region, - EventTime: tnow.Format(iso8601Format), + EventTime: tnow.Format(timeFormatAMZ), EventName: event.Type.String(), UserIdentity: defaultIdentity(), RequestParameters: event.ReqParams,