wankai123 commented on code in PR #13677:
URL: https://github.com/apache/skywalking/pull/13677#discussion_r2707420637


##########
oap-server/server-query-plugin/promql-plugin/src/main/java/org/apache/skywalking/oap/query/promql/handler/PromQLApiHandler.java:
##########
@@ -597,7 +613,8 @@ private static long formatTimestamp2Millis(String 
timestamp) {
             time = Double.valueOf(timestamp).longValue() * 1000;
         } catch (NumberFormatException e) {
             // if RFC3399 format, such as 2024-09-19T20:11:00.781Z
-            time = ISODateTimeFormat.dateTime().parseMillis(timestamp);
+            OffsetDateTime odt = OffsetDateTime.parse(timestamp, 
RFC3339_FORMATTER);
+            time = odt.toEpochSecond() * 1000;

Review Comment:
   don't require milliseconds



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to