You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2016/06/02 09:44:29 UTC
incubator-ponymail git commit: fix zero padding
Repository: incubator-ponymail
Updated Branches:
refs/heads/master 313774350 -> 0f086ce40
fix zero padding
Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/0f086ce4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/0f086ce4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/0f086ce4
Branch: refs/heads/master
Commit: 0f086ce409bb5696cda039154037f048e40c479c
Parents: 3137743
Author: humbedooh <hu...@apache.org>
Authored: Thu Jun 2 11:44:16 2016 +0200
Committer: humbedooh <hu...@apache.org>
Committed: Thu Jun 2 11:44:16 2016 +0200
----------------------------------------------------------------------
site/js/dev/ponymail_email_tools.js | 2 +-
site/js/ponymail.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/0f086ce4/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 30da2ef..1d2b4cd 100644
--- a/site/js/dev/ponymail_email_tools.js
+++ b/site/js/dev/ponymail_email_tools.js
@@ -204,7 +204,7 @@ function formatDate(date, dtz){
ttz++
}
ttz = (ttz*100) + tz
- while (ttz.length < 4) ttz = "0" + ttz
+ while (String(ttz).length < 4) ttz = "0" + String(ttz)
return (date.getFullYear() + "-" +
(date.getMonth()+1).pad(2) + "-" +
date.getDate().pad(2) + " " +
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/0f086ce4/site/js/ponymail.js
----------------------------------------------------------------------
diff --git a/site/js/ponymail.js b/site/js/ponymail.js
index bcd43bd..3ab4774 100644
--- a/site/js/ponymail.js
+++ b/site/js/ponymail.js
@@ -2046,7 +2046,7 @@ function formatDate(date, dtz){
ttz++
}
ttz = (ttz*100) + tz
- while (ttz.length < 4) ttz = "0" + ttz
+ while (String(ttz).length < 4) ttz = "0" + String(ttz)
return (date.getFullYear() + "-" +
(date.getMonth()+1).pad(2) + "-" +
date.getDate().pad(2) + " " +