Development

Changeset 3409

You must first sign up to be able to contribute.

Changeset 3409

Show
Ignore:
Timestamp:
02/06/07 09:08:40 (2 years ago)
Author:
fabien
Message:

fixed sfException - Impossible to parse date "" with format "yyyy-MM-dd HH:mm:ss" (closes #1420 - patch from skr68)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/i18n/sfDateFormat.class.php

    r3151 r3409  
    118118  public function getDate($time, $pattern = null) 
    119119  { 
     120    if (is_null($time)) 
     121    { 
     122      return null; 
     123    } 
     124 
    120125    // if the type is not a php timestamp 
    121126    $isString = (string) $time !== (string) (int) $time;