The NPM package repository has over 800,000 modules at last count — almost 3 times as many as Maven (Java). So what if most of those modules are ugly and as usable as a ball of mud, there’s still enough value there to account for more than 18 billion downloads per month.
Look at what momentjs does with dates. It doesn’t care about timezones or savings time or even where you are. It will eat up pretty much any stupid date format, do date arithmetic and poop out the date in the local timezone and local format.
Who the hell are you and what are you doing here? The passport module can figure that out.