<p>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.</p>

<p>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.</p>

<p>Regards,</p>

<p>Di-Shi</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/378#issuecomment-61603566">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciZEGzsoPPw1brXn7kq7H_vOGMwAEks5nKHpNgaJpZM4C0MPh.gif" width="1" /></p>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"View this Issue on GitHub","action":{"@type":"ViewAction","url":"https://github.com/OpenSIPS/opensips/issues/378#issuecomment-61603566","name":"View Issue"}}</script>