ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject incubator-ponymail git commit: ponymail.js/formatDate may show the wrong timezone
Date Sun, 11 Dec 2016 13:37:35 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 164ef8f3e -> 17b357393


ponymail.js/formatDate may show the wrong timezone

This fixes #285


Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/17b35739
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/17b35739
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/17b35739

Branch: refs/heads/master
Commit: 17b357393f2b0acf8c8f02aa09a1a2dae7cfd99e
Parents: 164ef8f
Author: Sebb <sebb@apache.org>
Authored: Sun Dec 11 13:35:54 2016 +0000
Committer: Sebb <sebb@apache.org>
Committed: Sun Dec 11 13:37:15 2016 +0000

----------------------------------------------------------------------
 CHANGELOG.md                        | 1 +
 site/js/dev/ponymail_email_tools.js | 2 +-
 site/js/ponymail.js                 | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/17b35739/CHANGELOG.md
----------------------------------------------------------------------
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4c714eb..b0f3096 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -55,6 +55,7 @@
 - pminfo.lua creates top100 sender information but it's not used (#282)
 - stats.lua could use single aggregate query to get first and last years (#276)
 - stats.lua can fail when creating top10 senders (#283)
+- ponymail.js/formatDate may show the wrong timezone (#285)
 
 ## CHANGES in 0.9b:
 

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/17b35739/site/js/dev/ponymail_email_tools.js
----------------------------------------------------------------------
diff --git a/site/js/dev/ponymail_email_tools.js b/site/js/dev/ponymail_email_tools.js
index 262c5cf..51a4c78 100644
--- a/site/js/dev/ponymail_email_tools.js
+++ b/site/js/dev/ponymail_email_tools.js
@@ -194,7 +194,7 @@ Number.prototype.pad = function(size) {
 
 // formatDate: Return a date as YYYY-MM-DD HH:mm
 function formatDate(date, dtz){
-    tz = new Date().getTimezoneOffset()
+    tz = new Date(date).getTimezoneOffset()
     ttz = 0
     var plus = "-"
     if (tz < 0) {

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/17b35739/site/js/ponymail.js
----------------------------------------------------------------------
diff --git a/site/js/ponymail.js b/site/js/ponymail.js
index e3e700e..300c8f4 100644
--- a/site/js/ponymail.js
+++ b/site/js/ponymail.js
@@ -2082,7 +2082,7 @@ Number.prototype.pad = function(size) {
 
 // formatDate: Return a date as YYYY-MM-DD HH:mm
 function formatDate(date, dtz){
-    tz = new Date().getTimezoneOffset()
+    tz = new Date(date).getTimezoneOffset()
     ttz = 0
     var plus = "-"
     if (tz < 0) {


Mime
View raw message