Timestamps and sync behavior

16 views
Skip to first unread message

Frank Bennett

unread,
May 6, 2013, 9:30:33 AM5/6/13
to zoter...@googlegroups.com
When a field in changed during a schema update (in MLZ), I would like the change to be pushed to the server at the next sync.

I have tried setting clientDateModified, or clientDateModified and dateModified to Zotero.DB.transactionDateTIme, but the item affected does not seem to sync until it is edited through the UI. I must be missing something. What conditions trigger sync of an item from client to server?

Frank

Dan Stillman

unread,
May 6, 2013, 1:39:39 PM5/6/13
to zoter...@googlegroups.com
SELECT ROWID FROM items WHERE clientDateModified>?;

You can look at the debug output during sync and try the commands and
parameters yourself. Maybe somehow JST is getting inserted instead of
UTC? (transactionDateTime should be inserting a UTC date, though.)

Frank Bennett

unread,
May 6, 2013, 5:52:09 PM5/6/13
to zoter...@googlegroups.com

Bingo. It was failing through an abundance of caution. I was setting the timestamp only on editable groups, which missed out items in the user's own library.

Works like a charm now. Thanks!

Frank

Reply all
Reply to author
Forward
0 new messages