samsonjs / strftime

strftime for JavaScript

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible bug with %U

opened this issue · comments

This looks like a bug with %U:

console.log( strftime('%U', (new Date('03-25-2017 00:00:00'))) ) // 12
console.log( strftime('%U', (new Date('03-26-2017 00:00:00'))) ) // 13
console.log( strftime('%U', (new Date('03-27-2017 00:00:00'))) ) // 12
console.log( strftime('%U', (new Date('04-02-2017 00:00:00'))) ) // 13

Should the issue be reopened, since the fix was reverted?

Yup, reopened.

Ok, master is fixed and it will be rolled out in 0.9.1 shortly. We had a bug in the tests but it's sorted. Thanks for the report @clexit!

Thanks for the quick fix!