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 =