apply adulau's patch for writing time in UTC format