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 the 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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to