[SR-Users] Regd. Expires DB column in Presentity and Location tables

Daniel-Constantin Mierla miconda at gmail.com
Thu Jul 11 13:00:28 CEST 2013


Hello,

On 7/10/13 1:48 PM, Shankar wrote:
>
> Hello,
>
> The 'type' of 'expires' column in location table is 'datetime' whereas 
> in table presentity the type is 'int'. Is there any reason behind this?
>
> I hope for the sake of uniformity 'expires' can be changed to 'datetime'.
>

it was developer choice for each module, the one being 'int' is storing 
the unixtimestamp which is actually easier to use inside the code, 
because it does not need conversion, not timezone adjustments. usrloc 
(using location) is one of the very old modules, whereas presence was 
developed many year after it.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130711/4349a9a8/attachment.html>


More information about the sr-users mailing list