# HG changeset patch # User Thierry Florac # Date 1546857292 -3600 # Node ID be269649efc5a72bd3bb70e276ad94b71a705d53 # Parent a2a3998da488cbaf0309d002bc30b0a3751a5e91 Version 0.1.27.1 diff -r a2a3998da488 -r be269649efc5 buildout.cfg --- a/buildout.cfg Fri Dec 28 10:54:20 2018 +0100 +++ b/buildout.cfg Mon Jan 07 11:34:52 2019 +0100 @@ -96,4 +96,4 @@ eggs = pyams_utils [test] [versions] -pyams_utils = 0.1.27 +pyams_utils = 0.1.27.1 diff -r a2a3998da488 -r be269649efc5 docs/HISTORY.txt --- a/docs/HISTORY.txt Fri Dec 28 10:54:20 2018 +0100 +++ b/docs/HISTORY.txt Mon Jan 07 11:34:52 2019 +0100 @@ -1,6 +1,10 @@ Changelog ========= +0.1.27.1 +-------- + - force timezone in "timestamp" TALES adapter + 0.1.27 ------ - updated text to HTML converter to be able to specify several renderers in the same TALES 'html' extension call diff -r a2a3998da488 -r be269649efc5 setup.py --- a/setup.py Fri Dec 28 10:54:20 2018 +0100 +++ b/setup.py Mon Jan 07 11:34:52 2019 +0100 @@ -25,7 +25,7 @@ README = os.path.join(DOCS, 'README.txt') HISTORY = os.path.join(DOCS, 'HISTORY.txt') -version = '0.1.27' +version = '0.1.27.1' long_description = open(README).read() + '\n\n' + open(HISTORY).read() tests_require = [ diff -r a2a3998da488 -r be269649efc5 src/pyams_utils.egg-info/PKG-INFO --- a/src/pyams_utils.egg-info/PKG-INFO Fri Dec 28 10:54:20 2018 +0100 +++ b/src/pyams_utils.egg-info/PKG-INFO Mon Jan 07 11:34:52 2019 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pyams-utils -Version: 0.1.27 +Version: 0.1.27.1 Summary: Utility functions and classes for PyAMS Home-page: http://www.ztfy.org Author: Thierry Florac @@ -47,6 +47,10 @@ Changelog ========= + 0.1.27.1 + -------- + - force timezone in "timestamp" TALES adapter + 0.1.27 ------ - updated text to HTML converter to be able to specify several renderers in the same TALES 'html' extension call diff -r a2a3998da488 -r be269649efc5 src/pyams_utils/date.py --- a/src/pyams_utils/date.py Fri Dec 28 10:54:20 2018 +0100 +++ b/src/pyams_utils/date.py Mon Jan 07 11:34:52 2019 +0100 @@ -267,6 +267,6 @@ format_func = datetime.timestamp dc = IZopeDublinCore(context, None) if dc is None: - return format_func(datetime.utcnow()) + return format_func(tztime(datetime.utcnow())) else: - return format_func(dc.modified) + return format_func(tztime(dc.modified))