Response date Headers gets automactically transformed from ISOstring to GMT

In a nodeJS app I have hosted on render, I return the response date headers as new Date().toISOString() from the application level but I notice the header somehow gets transformed to a GMT format when transporting the response from render back.

Hi there,

The http spec defines the date header as GMT

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date
https://www.rfc-editor.org/rfc/rfc9110.html#name-date-time-formats

Regards,

John B

1 Like

Thank you, this pointed me in the right direction.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.