Skip to content

Commit 5f278e7

Browse files
Copilotmarci4
andcommitted
Fix ZonedDateTime.now() to use explicit GMT zone
Co-authored-by: marci4 <13464940+marci4@users.noreply.github.com>
1 parent a5d287f commit 5f278e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/java_websocket/drafts/Draft_6455.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ public void reset() {
822822
* @return the server time
823823
*/
824824
private String getServerTime() {
825-
return HTTP_DATE_FORMAT.format(ZonedDateTime.now());
825+
return HTTP_DATE_FORMAT.format(ZonedDateTime.now(ZoneId.of("GMT")));
826826
}
827827

828828
/**

0 commit comments

Comments
 (0)