datetime fixes for format and timezone change