# Can i pass $time\_local to backend server?

**URL:** <https://www.ruby-forum.com/t/can-i-pass-time-local-to-backend-server/211468>\
**Category:** NGINX\
**Created:** [September 5, 2011, 7:40am UTC](https://www.ruby-forum.com/t/can-i-pass-time-local-to-backend-server/211468 "2011-09-05T07:40:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [September 5, 2011, 7:40am UTC](https://www.ruby-forum.com/t/can-i-pass-time-local-to-backend-server/211468/1 "2011-09-05T07:40:36Z")

</div>

hi, i want set the variable $time\_local in log to the header , and then  
the backend server can got it  
like: proxy\_set\_header MY\_TIME $time\_local  
but i got error : unknown “time\_local” variable  
if i can set a variable about time to the header? many thanks!

Posted at Nginx Forum:

> **[can i pass $time\_local to backend server?](https://forum.nginx.org/read.php?2,214774,214774#msg-214774)**
>
> hi, i want set the variable $time\_local in log to the header , and then the backend server can got it like: proxy\_set\_header MY\_TIME $time\_local but i got error : unknown "time\_local" variable if i can set a variable about time to the...
