Ignore:
Timestamp:
Sep 27, 2013, 12:44:30 PM (11 years ago)
Author:
chronos
Message:
  • Přidáno: Zobrazení verze a času v záhlaví stránky.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Database.php

    r548 r571  
    152152    return(addslashes($Text));
    153153  }
    154  
    155154}
    156155
     
    175174function MysqlDateTimeToTime($DateTime)
    176175{
    177   if($DateTime == '') return(0);     
     176  if($DateTime == '') return(NULL);     
    178177  $Parts = explode(' ', $DateTime);
    179178  $DateParts = explode('-', $Parts[0]);
     
    185184function MysqlDateToTime($Date)
    186185{
    187   if($Date == '') return(0);
     186  if($Date == '') return(NULL);
    188187  return(MysqlDateTimeToTime($Date.' 0:0:0')); 
    189188}
     
    191190function MysqlTimeToTime($Time)
    192191{
    193   if($Time == '') return(0);
     192  if($Time == '') return(NULL);
    194193  return(MysqlDateTimeToTime('0000-00-00 '.$Time)); 
    195194}
Note: See TracChangeset for help on using the changeset viewer.