[OpenSIPS-Devel] [opensips] date format convert method that use in opensips.cfg (#378)

Di-Shi Sun notifications at github.com
Wed Oct 29 10:21:17 CET 2014


First, I was joking. It is definitely not a good idea to use get_timestamp (or other pvars such as $Ts) to generate GMT time string. But it is possible. If you read the code of OpenSIPS, you can see it uses C gettimeofday and time functions to get the number of seconds and microseconds since the Epoch. They are not timezone depending. As long as you set the correct timezone, you can get correct time in seconds from the Epoch. And then, you can generate correct time string in GMT.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/378#issuecomment-60893522
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20141029/879985b5/attachment.htm>


More information about the Devel mailing list