Skip to content

Commit

Permalink
feat(aliyun_open): fix date format
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanHeuc committed Sep 3, 2023
1 parent 5e3eec6 commit 88f8159
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/aliyundrive_open/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,8 @@ func (d *AliyundriveOpen) upload(ctx context.Context, dstDir model.Obj, stream m
// Part Size Unit: Bytes, Default: 20MB,
// Maximum number of slices 10,000, ≈195.3125GB
var partSize = calPartSize(stream.GetSize())
const dateFormat = "2006-01-02T15:04:05.999Z"
mtime := stream.ModTime()
mtimeStr := mtime.UTC().Format(dateFormat)
const dateFormat = "2006-01-02T15:04:05.000Z"
mtimeStr := stream.ModTime().UTC().Format(dateFormat)
ctimeStr := stream.CreateTime().UTC().Format(dateFormat)

createData := base.Json{
Expand Down

0 comments on commit 88f8159

Please sign in to comment.