Show
Ignore:
Timestamp:
07/06/10 14:17:37 (3 years ago)
Author:
nikrou
Message:

Bug 1766 fixed : [PostgreSQL] unkown database function UNIX_TIMESTAMP()
Add a new function pwg_db_date_to_ts() to calculate a timestamp from a date
Merge from trunk

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/2.1/include/functions_session.inc.php

    r6364 r6667  
    176176DELETE 
    177177  FROM '.SESSIONS_TABLE.' 
    178   WHERE UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(expiration) > ' 
     178  WHERE '.pwg_db_date_to_ts('NOW()').' - '.pwg_db_date_to_ts('expiration').' > ' 
    179179  .$conf['session_length'].' 
    180180;';