Ignore:
Timestamp:
Jul 6, 2010, 2:14:17 PM (14 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/dblayer/functions_mysql.inc.php

    r6604 r6666  
    637637}
    638638
     639function pwg_db_date_to_ts($date)
     640{
     641  return 'UNIX_TIMESTAMP('.$date.')';
     642}
     643
    639644// my_error returns (or send to standard output) the message concerning the
    640645// error occured for the last mysql query.
Note: See TracChangeset for help on using the changeset viewer.