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

Di-Shi Sun notifications at github.com
Tue Nov 4 08:39:57 CET 2014


If zhouxiaoqiang only wants to get time string in GMT for SIP Date, it should be easy to implemented. C function gmtime should work. timezone configuration is not needed. A pvar say, gmttime(), should be enough.

If time strings in other timezones are needed, the best way may be to provider a function with a timezone parameter to get time string. The timezone parameter is better to use offset instead of using timezone name. The implementation may be a little tricky but also not difficult. A script variable should also work.

Regards,

Di-Shi

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


More information about the Devel mailing list