Correct usages of DateTime.now() everywhere to DateTime.now(UTC)

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=166393128
This commit is contained in:
mcilwain 2017-08-24 14:16:48 -07:00 committed by Ben McIlwain
parent 7fb44e4f66
commit 103b3d7608
7 changed files with 16 additions and 9 deletions

View file

@ -21,6 +21,7 @@ import static google.registry.util.DateTimeUtils.START_OF_TIME;
import static google.registry.util.PreconditionsUtils.checkArgumentPresent;
import static java.nio.charset.StandardCharsets.US_ASCII;
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.joda.time.DateTimeZone.UTC;
import com.google.appengine.tools.cloudstorage.GcsFilename;
import com.google.common.collect.ImmutableSet;
@ -220,7 +221,7 @@ public class RdeImportUtils {
.setType(HistoryEntry.Type.RDE_IMPORT)
.setClientId(domain.getClID())
.setTrid(generateTridForImport())
.setModificationTime(DateTime.now())
.setModificationTime(DateTime.now(UTC))
.setXmlBytes(getObjectXml(element))
.setBySuperuser(true)
.setReason("RDE Import")