--- a/src/pyams_content/shared/blog/zmi/manager.py Sat Jun 09 00:07:00 2018 +0200
+++ b/src/pyams_content/shared/blog/zmi/manager.py Sat Jun 09 00:44:12 2018 +0200
@@ -186,6 +186,6 @@
def updateWidgets(self, prefix=None):
super(BlogManagerWorkflowPublicationEditForm, self).updateWidgets(prefix)
if 'publication_effective_date' in self.widgets:
- widget = self.widgets['publication_effective_date']
- if not widget.value:
- widget.value = tztime(datetime.utcnow()).strftime('%d/%m/%y %H:%M')
+ pub_info = IWorkflowPublicationInfo(self.context)
+ if pub_info.publication_effective_date is None:
+ self.widgets['publication_effective_date'].value = tztime(datetime.utcnow()).strftime('%d/%m/%y %H:%M')