Fixed time formatting issues. Isn't tested across time zone though.