Is there a way to get the current time in nginx?
You can use variables from SSI modulе: $date_gmt and $date_local
proxy_set_header THE-TIME $date_gmt;
http://nginx.org/en/docs/http/ngx_http_ssi_module.html#variables
$time_iso8601
is both machine- & human-friendly.