Changeset 16670

Show
Ignore:
Timestamp:
06/23/08 14:33:49 (4 months ago)
Author:
bergie
Message:

More sensible CSV return for date type

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/MidCOM_2_8/midcom.helper.datamanager2/type/date.php

    r14808 r16670  
    148148    function convert_to_csv() 
    149149    { 
    150         return $this->convert_to_storage(); 
     150        if ($this->is_empty()) 
     151        { 
     152            return ''; 
     153        } 
     154        return $this->value->format('%Y-%m-%d %T'); 
    151155    } 
    152156