You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2022/10/06 20:04:17 UTC

[GitHub] [druid] gianm commented on a diff in pull request #13175: upgrade kubernetes extension k8s client api jar to v16

gianm commented on code in PR #13175:
URL: https://github.com/apache/druid/pull/13175#discussion_r989437077


##########
extensions-core/kubernetes-extensions/src/main/java/org/apache/druid/k8s/discovery/K8sDiscoveryModule.java:
##########
@@ -63,7 +64,10 @@ public void configure(Binder binder)
                 try {
                   // Note: we can probably improve things here about figuring out how to find the K8S API server,
                   // HTTP client timeouts etc.
-                  return Config.defaultClient();
+                  final SimpleDateFormat dateFormat = new SimpleDateFormat(
+                      "yyyyMMdd'T'HHmmss.SSS'Z'");
+                  dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));

Review Comment:
   It's the kind of thing that should be always UTC, since it's a server thing, not a user-facing or data-related timestamp.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org