Version 0.1.27.1 0.1.27.1
authorThierry Florac <thierry.florac@onf.fr>
Mon, 07 Jan 2019 11:34:52 +0100
changeset 306 be269649efc5
parent 305 a2a3998da488
child 307 8745764c251f
Version 0.1.27.1
buildout.cfg
docs/HISTORY.txt
setup.py
src/pyams_utils.egg-info/PKG-INFO
src/pyams_utils/date.py
--- 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
--- 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
--- 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 = [
--- 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
--- 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))