Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
Index: src/Products.Archetypes/Products/Archetypes/Field.py =================================================================== --- src/Products.Archetypes/Products/Archetypes/Field.py (revision 12299) +++ src/Products.Archetypes/Products/Archetypes/Field.py (working copy) @@ -1449,6 +1449,8 @@ # which is assumed to be the local one # see http://dev.plone.org/plone/ticket/10141 - value += ' ' + DateTime().timezone() value = DateTime(value) + local = DateTime() + if value.tzoffset() == 0 and local.tzoffset() != 0: + value = DateTime(value + ' ' + local.timezone()) except DateTime.DateTimeError: value = None
This paste will be private.
From the Design Piracy series on my blog: