aboutsummaryrefslogtreecommitdiffstats
path: root/usi.js
diff options
context:
space:
mode:
authoranekos2011-03-07 18:48:45 +0900
committeranekos2011-03-07 18:48:45 +0900
commit9819824a7c5ba5f4bbac7e967efb4c4700a315a4 (patch)
treed4e0ae95279361f3185ae8fc03cc7ed25f61c7bb /usi.js
parenta637986d92a45cb1316626170ad372f37947c926 (diff)
downloadvimperator-plugins-9819824a7c5ba5f4bbac7e967efb4c4700a315a4.tar.bz2
日時表示を改善
Diffstat (limited to 'usi.js')
-rw-r--r--usi.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/usi.js b/usi.js
index 775b75e..86d9965 100644
--- a/usi.js
+++ b/usi.js
@@ -35,7 +35,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
// INFO {{{
let INFO =
<>
- <plugin name="usi.js" version="1.2.1"
+ <plugin name="usi.js" version="1.2.2"
href="http://vimpr.github.com/"
summary="for Remember The Milk."
lang="en-US"
@@ -225,8 +225,8 @@ let INFO =
let dDay = (targetDay.getTime() - nowDay.getTime()) / Day;
let dHour = Math.floor((target.getTime() - now.getTime()) / Hour);
- let base = target.getHours() === 0 ? target.toLocaleDateString()
- : target.toLocaleString();
+ let base = target.getHours() === 0 ? target.toLocaleFormat('%Y/%m/%d (%a)')
+ : target.toLocaleFormat('%Y/%m/%d (%a) %H:%M');
let prefix;
if (dDay == 0){
prefix = Math.abs(dHour) + ' hours ' + beforeAfter(dHour);