joyent/node — Issue #1845: toGMTString() outputs wrong Day when new createed Date from parameters
Author: rofrol
Created: 2011-10-08 21:33:28+00:00
State: open

> process.version
'v0.5.8'
> var d = new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate())
> /(\d\d)/.exec(d.toGMTString())[0] === /(\d\d)/.exec(new Date().toGMTString())[0]
false
> d.getDay() === new Date().getDay()
true