Ignore:
Timestamp:
06/04/10 21:39:02 (9 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_sqlite.inc.php

    r6342 r6464  
    5656 
    5757  $link->createFunction('now', 'pwg_now', 0); 
     58  $link->createFunction('hour', 'pwg_hour', 1); 
    5859  $link->createFunction('unix_timestamp', 'pwg_unix_timestamp', 0); 
    5960  $link->createFunction('md5', 'md5', 1); 
     
    583584} 
    584585 
     586function pwg_hour($datetime) 
     587{ 
     588  return strftime('%H', $datetime); 
     589} 
     590 
    585591function pwg_unix_timestamp() 
    586592{ 
Note: See TracChangeset for help on using the changeset viewer.