Is possible to change the header "Date" of the http response

When I try to add a info to header “Data” I always get the same: my local time and date: 2015 May 14 16:40:18.

How does it take my local time?
Is possible to change it?

I’m not certain I understand your question… Can you post some sample code to show what you’re trying to do?

I’m assuming that you’re talking about the “Date:” header in the HTTP response, and that you’re attempting to do something like the following?

http.onrequest(function(req, res) { // This is NOT now. res.header("Date", "Wed, 20 May 2015 11:34:58 GMT"); res.send(200, "OK"); });

No. You can’t do that. The “Date:” header is always the server’s timestamp. The servers are configured in the UTC timezone, which (for the purposes of this discussion, but not actually) is the same as GMT.

The relevant portion of RFC 7231, section, says:

When a Date header field is generated, the sender SHOULD generate its field value as the best available approximation of the date and time of message generation.


An origin server MUST send a Date header field [...unless it has no clock, or this is a 1xx or 5xx response...]