Skip to content

Commit

Permalink
fix(aliyundrive_open): date format on uploading (#5151)
Browse files Browse the repository at this point in the history
(cherry picked from commit 88f8159)
  • Loading branch information
SeanHeuc authored Sep 3, 2023
1 parent 37dffd0 commit 8e40465
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 8e40465

Please sign in to comment.