Ignore:
Timestamp:
Jun 4, 2010, 9:39:02 PM (14 years ago)
Author:
nikrou
Message:

Bug 1717 fixed : SQLite: access failure on Admin > Tools > History
hour function doesn't exists
Merge from trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/include/dblayer/functions_pdo-sqlite.inc.php

    r6342 r6464  
    4747
    4848  $link->sqliteCreateFunction('now', 'pwg_now', 0);
     49  $link->sqliteCreateFunction('hour', 'pwg_hour', 1);
    4950  $link->sqliteCreateFunction('unix_timestamp', 'pwg_unix_timestamp', 0);
    5051  $link->sqliteCreateFunction('md5', 'md5', 1);
     
    571572}
    572573
     574function pwg_hour($datetime)
     575{
     576  return strftime('%H', $datetime);
     577}
     578
    573579function pwg_unix_timestamp()
    574580{
Note: See TracChangeset for help on using the changeset viewer.