feat: Update advowareLastSync to use EspoCRM datetime format for consistency in sync operations
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user