Fixed bug with local time conversion.