feat: Update advowareLastSync to use EspoCRM datetime format for consistency in sync operations

This commit is contained in:
2026-02-07 19:14:57 +00:00
parent 3354aef936
commit 46f9301a17

View File

@@ -116,9 +116,13 @@ class BeteiligteSync:
extra_fields: Optional: Zusätzliche Felder für EspoCRM update (z.B. betnr)
"""
try:
# EspoCRM datetime format: YYYY-MM-DD HH:MM:SS (keine Timezone!)
now_utc = datetime.now(pytz.UTC)
espo_datetime = now_utc.strftime('%Y-%m-%d %H:%M:%S')
update_data = {
'syncStatus': new_status,
'advowareLastSync': datetime.now(pytz.UTC).isoformat()
'advowareLastSync': espo_datetime
}
if error_message: