mirror of
https://github.com/google/nomulus.git
synced 2025-05-21 03:39:36 +02:00
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:
parent
7fb44e4f66
commit
103b3d7608
7 changed files with 16 additions and 9 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue