From 29bb3678c1869c0673119ffd8eac5629f01f5dc5 Mon Sep 17 00:00:00 2001 From: RobotSe7en Date: Fri, 25 Sep 2020 19:58:39 +0800 Subject: [PATCH] Fix Drive mtime and btime (#299) * Update drive.py fix timestamp about api.drive.upload() * Update pyicloud/services/drive.py Co-authored-by: Quentame --- pyicloud/services/drive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyicloud/services/drive.py b/pyicloud/services/drive.py index 0151a19..83b3363 100644 --- a/pyicloud/services/drive.py +++ b/pyicloud/services/drive.py @@ -113,8 +113,8 @@ class DriveService(object): "is_executable": False, "is_hidden": False, }, - "mtime": int(time.time()), - "btime": int(time.time()), + "mtime": int(time.time() * 1000), + "btime": int(time.time() * 1000), } # Add the receipt if we have one. Will be absent for 0-sized files