Fixing windows-only bug in localedatetime.

See: http://forum.pivotx.net/viewtopic.php?f=17&t=4393