rdv: fix timezone issue for editing events

This commit is contained in:
nobohan
2021-08-16 15:39:12 +02:00
parent 981c819f56
commit afad23eb0f
3 changed files with 31 additions and 11 deletions

View File

@@ -25,8 +25,8 @@
'{{ "You are going to leave a page with unsubmitted data. Are you sure you want to leave ?"|trans }}');
});
window.entity = {{ entity_json|json_encode|raw }};
window.startDate = {{ entity.startDate|json_encode|raw }};
window.endDate = {{ entity.endDate|json_encode|raw }};
window.startDate = {{ entity.startDate|date('Y-m-d H:i:s')|json_encode|raw }};
window.endDate = {{ entity.endDate|date('Y-m-d H:i:s')|json_encode|raw }};
</script>
{{ encore_entry_script_tags('vue_calendar') }}
{% endblock %}