You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2019/09/22 10:58:47 UTC

[GitHub] [skywalking] x22x22 commented on a change in pull request #3498: Query server time info

x22x22 commented on a change in pull request #3498: Query server time info
URL: https://github.com/apache/skywalking/pull/3498#discussion_r326894641
 
 

 ##########
 File path: oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/MetadataQuery.java
 ##########
 @@ -93,4 +96,13 @@ public EndpointInfo getEndpointInfo(final int endpointId) throws IOException {
     public List<Database> getAllDatabases(final Duration duration) throws IOException {
         return getMetadataQueryService().getAllDatabases();
     }
+
+    public TimeInfo getTimeInfo() {
+        TimeInfo timeInfo = new TimeInfo();
+        SimpleDateFormat timezoneFormat = new SimpleDateFormat("ZZZZZZ");
+        Date date = new Date();
+        timeInfo.setCurrentTimestamp(date.getTime());
 
 Review comment:
   how do get timezone?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services