fix: Update timestamp format for metadata synchronization to match EspoCRM requirements
This commit is contained in:
@@ -320,9 +320,9 @@ class AdvowareDocumentSyncUtils:
|
||||
if history_hnr is not None and history_hnr != espo_hnr:
|
||||
updates['hnr'] = history_hnr
|
||||
|
||||
# Always update lastSyncTimestamp when metadata changes
|
||||
# Always update lastSyncTimestamp when metadata changes (EspoCRM format)
|
||||
if len(updates) > 0:
|
||||
updates['lastSyncTimestamp'] = datetime.now().isoformat()
|
||||
updates['lastSyncTimestamp'] = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
|
||||
|
||||
needs_update = len(updates) > 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user