Discussion: Time/Date code in Javascript

I wrote up a Earth time to Glitch time converter in Javascript today for a project I'm working on, and thought I'd share if anybody else finds it useful.

Since the forum doesn't provide the most awesome code formatting, here it is as a gist on Github. Please feel free to fork if you see any improvements to be made.
Oops, just realized I'm not handling Recurse correctly in the formatted time function. I'll update at some point, but don't have time at the moment. So... caveat emptor.
The code is now updated to handle Recurse. 
woo, thanks :)
I think there might be a slight bug that makes the month go +1, I fixed it by removing the "+1" on line 45. It now displays the right date :)
Thanks balatik. I really need to get this code into less of a mess so you don't have to keep stumbling on my dumb bugs :)

I updated the off-by-one error and a formatting error in "Widdershins" as well. Appreciate the heads up.