juruen/rmapi

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

deionizedoatmeal opened this issue · 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.

ddvk commented

is your account migrated, does it show using sync15?

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
ddvk commented

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