# HG changeset patch # User Thierry Florac # Date 1507876744 -7200 # Node ID 7a55458f64a7694bc042e1b3e2ce3fbe6810fc52 # Parent 51a05a1f42122548ce31f36a790f275bb0d7a679 Apply timezone to publication start date diff -r 51a05a1f4212 -r 7a55458f64a7 src/pyams_content/shared/common/zmi/workflow.py --- a/src/pyams_content/shared/common/zmi/workflow.py Fri Oct 13 08:38:32 2017 +0200 +++ b/src/pyams_content/shared/common/zmi/workflow.py Fri Oct 13 08:39:04 2017 +0200 @@ -135,7 +135,7 @@ if 'publication_effective_date' in self.widgets: widget = self.widgets['publication_effective_date'] widget.required = True - widget_date = pub_info.publication_effective_date or datetime.now() + widget_date = tztime(pub_info.publication_effective_date or datetime.utcnow()) widget.value = widget_date.strftime('%d/%m/%y %H:%M') if ('push_end_date' in self.widgets) and pub_info.push_end_date: self.widgets['push_end_date'].value = tztime(pub_info.push_end_date).strftime('%d/%m/%y %H:%M')