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

@ -18,6 +18,7 @@ import static google.registry.flows.host.HostFlowUtils.lookupSuperordinateDomain
import static google.registry.mapreduce.MapreduceRunner.PARAM_MAP_SHARDS;
import static google.registry.model.ofy.ObjectifyService.ofy;
import static google.registry.util.PipelineUtils.createJobPath;
import static org.joda.time.DateTimeZone.UTC;
import com.google.appengine.tools.mapreduce.Mapper;
import com.google.common.base.Optional;
@ -105,7 +106,7 @@ public class RdeHostLinkAction implements Runnable {
try {
InternetDomainName hostName = InternetDomainName.from(xjcHost.getName());
Optional<DomainResource> superordinateDomain =
lookupSuperordinateDomain(hostName, DateTime.now());
lookupSuperordinateDomain(hostName, DateTime.now(UTC));
// if suporordinateDomain is null, this is an out of zone host and can't be linked
if (!superordinateDomain.isPresent()) {
getContext().incrementCounter("post-import hosts out of zone");