fix: Update timestamp format for metadata synchronization to match EspoCRM requirements

This commit is contained in:
bsiggel
2026-03-25 21:37:49 +00:00
parent 50c5070894
commit d78a4ee67e
2 changed files with 5 additions and 5 deletions

View File

@@ -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