[Varnish] #1114: localtime () in inline c not behaving as expected

Varnish varnish-bugs at varnish-cache.org
Sun Mar 25 18:36:10 CEST 2012


#1114: localtime () in inline c not behaving as expected
-------------------------+--------------------------------------------------
 Reporter:  cyberroadie  |        Type:  defect
   Status:  new          |    Priority:  normal
Milestone:               |   Component:  build 
  Version:  3.0.2        |    Severity:  normal
 Keywords:               |  
-------------------------+--------------------------------------------------
 Hi,

 I created a a small method to return some json with time information.
 I found that the localtime() method does not behave as expected, instead
 of returning the time set according to the timezone of the OS it sets it
 to UTC.

 Does varnish set itself to UTC overriding the the OS settings?

 See attached file for example

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1114>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list