<p>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.</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-60893522">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciWarahh1Txwl7o6aShyKVO_eHDl1ks5nIKkNgaJpZM4C0MPh.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-60893522","name":"View Issue"}}</script>