workaround for datetime locale formatting issue