From 79f6cd6ca27402c07315df38da706a8590981694 Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 20 Jun 2011 12:41:18 -0700 Subject: [PATCH] fix %P --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index a2078769a..e4e37e20e 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1809,7 +1809,7 @@ } }, P: function() { - if (this.date.getHours < 12) { + if (this.date.getHours() < 12) { return 'am'; } else { return 'pm'; diff --git a/script.coffee b/script.coffee index 54d5dbeb3..86611aa52 100644 --- a/script.coffee +++ b/script.coffee @@ -1430,7 +1430,7 @@ Time = m: -> @zeroPad @date.getMonth() + 1 M: -> @zeroPad @date.getMinutes() p: -> if @date.getHours() < 12 then 'AM' else 'PM' - P: -> if @date.getHours < 12 then 'am' else 'pm' + P: -> if @date.getHours() < 12 then 'am' else 'pm' y: -> @date.getFullYear() - 2000 titlePost =