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
This commit is contained in:
Yurii Rashkovskii 2016-08-15 10:50:07 +02:00 committed by Harshavardhana
parent a3592228f5
commit 341171f326

View File

@ -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,