rmapi icon indicating copy to clipboard operation
rmapi copied to clipboard

`ModifiedClient` field in `stat` is missing date, only shows time.

Open deionizedoatmeal opened this issue 2 years ago • 3 comments

I'm currently working on a little file syncing script, and I just noticed that when running the stat command, rmapi reports the correct modified time (as according to the metadata file), but for the date it reports January 1, 1970. For example, the result of stat provides:

stat Quick\ sheets
{
  "ID": "21b9ce53-ca75-4f39-b2cf-e2ea0924eb60",
  "Version": 44,
  "Message": "",
  "Success": false,
  "BlobURLGet": "",
  "BlobURLGetExpires": "",
  "ModifiedClient": "1970-01-01T00:27:27.31594052Z",
  "Type": "DocumentType",
  "VissibleName": "Quick sheets",
  "CurrentPage": 0,
  "Bookmarked": false,
  "Parent": ""
}

but in the metadata I can see that "lastModified": "1647315940520".

I'm using version 0.0.19. Let me know if you need any more diagnostic info! Thanks.

deionizedoatmeal avatar Apr 13 '22 07:04 deionizedoatmeal

is your account migrated, does it show using sync15?

ddvk avatar Apr 13 '22 21:04 ddvk

Yep, I get this message as soon as I open the shell:

Refreshing tree...
WARNING!!!
  Using the new 1.5 sync, this has not been fully tested yet!!!
  Make sure you have a backup, in case there is a bug that could cause data loss!
ReMarkable Cloud API Shell

deionizedoatmeal avatar Apr 13 '22 22:04 deionizedoatmeal

the latest version should fix that, but you should remove the cache file

ddvk avatar Jun 06 '22 14:06 ddvk