Ignore:
Timestamp:
06/22/10 23:01:47 (9 years ago)
Author:
nikrou
Message:

Bug 1738 fixed : merge from trunk
hour function doesn't exists for database other than mysql.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/include/dblayer/functions_sqlite.inc.php

    r6464 r6579  
    5656 
    5757  $link->createFunction('now', 'pwg_now', 0); 
    58   $link->createFunction('hour', 'pwg_hour', 1); 
    5958  $link->createFunction('unix_timestamp', 'pwg_unix_timestamp', 0); 
    6059  $link->createFunction('md5', 'md5', 1); 
     
    515514} 
    516515 
     516function pwg_db_get_hour($date) 
     517{ 
     518  return 'strftime(\'%H\', '.$date.')'; 
     519} 
     520 
    517521function pwg_db_get_date_YYYYMM($date) 
    518522{ 
     
    584588} 
    585589 
    586 function pwg_hour($datetime) 
    587 { 
    588   return strftime('%H', $datetime); 
    589 } 
    590  
    591590function pwg_unix_timestamp() 
    592591{ 
Note: See TracChangeset for help on using the changeset viewer.