[Python-modules-commits] [python-xmp-toolkit] 01/09: fix-get_property_datetime-utc

Daniel Stender danstender-guest at moszumanska.debian.org
Sat Feb 20 15:50:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

danstender-guest pushed a commit to branch master
in repository python-xmp-toolkit.

commit 58dd24e59df6b9de32c7be2bed73c949ccb18b5d
Author: Daniel Stender <debian at danielstender.com>
Date:   Sat Feb 20 16:28:14 2016 +0100

    fix-get_property_datetime-utc
    
    Description: fix wrong conversion from timezones into UTC with get_property_datetime()
    Forwarded: https://github.com/python-xmp-toolkit/python-xmp-toolkit/issues/48
---
 libxmp/exempi.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libxmp/exempi.py b/libxmp/exempi.py
index 5252841..338a056 100644
--- a/libxmp/exempi.py
+++ b/libxmp/exempi.py
@@ -769,7 +769,7 @@ def get_property_date(xmp, schema, name):
                                minutes=xmp_date_time.tzminute,
                                microseconds=xmp_date_time.nanosecond * 1000)
 
-    if xmp_date_time.tzsign < 0:
+    if xmp_date_time.tzsign > 0:
         the_date = utc_date - delta
     else:
         the_date = utc_date + delta

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-xmp-toolkit.git



More information about the Python-modules-commits mailing list