samsonjs / strftime

strftime for JavaScript

Home Page:http://samhuri.net/projects/strftime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug when specify partial hour timezone

alexandrnikitin opened this issue · comments

var strftime = require('../strftime-min');
var testTime = new Date(1307472705067)
// for the timezone '-0730'
console.log(strftime.strftimeTZ("%F %r %z", testTime, '-0730'));
// 2011-06-07 12:21:45 PM -6.5-30
// the time and the timezone is wrong, i expect to get:
// 2011-06-07 11:21:45 AM -0730