Stdlib: Times: Use JS's "new Date" to convert TimeInfo to Time.
Stdlib: Times: Use JS's "new Date" to convert TimeInfo to Time.

To use JS's Date creation from string, I moved the TimeInfo formatting code above the toTime proc declaration. Also, I changed the argument type for newDate from string to cstring for it to work.

russpowers/Nim,dom96/Nim,russpowers/Nim,dom96/Nim,russpowers/Nim,tulayang/Nim,dom96/Nim,dom96/Nim,dom96/Nim,tulayang/Nim,russpowers/Nim,tulayang/Nim,tulayang/Nim,tulayang/Nim,tulayang/Nim,russpowers/Nim,dom96/Nim,dom96/Nim,russpowers/Nim,russpowers/Nim