Browse Source

fix for fractional timezone offsets

pull/10/head
Aaron Parecki 3 years ago
parent
commit
32894d8917
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      views/new-post.php

+ 1
- 1
views/new-post.php View File

@ -105,7 +105,7 @@ $(function(){
function tz_seconds_to_offset(seconds) {
var tz_offset = '';
var hours = zero_pad(Math.abs(seconds / 60 / 60));
var hours = zero_pad(Math.floor(Math.abs(seconds / 60 / 60)));
var minutes = zero_pad(Math.floor(seconds / 60) % 60);
return (seconds < 0 ? '-' : '+') + hours + ":" + minutes;
}

Loading…
Cancel
Save