5540 Posts in 1738 Topics by 1224 members
|Go to End|
10 June 2010 at 6:02pm
i got a strange problem when formating Dates with setConfig("dateformat" ,....) It always substracts one Year of the given DateValue.
if the saved date is 01/01/2010 it will display as 01/01/2009
if the date is 01/01/2011 it will display as 01/01/2010 and so on...
$date1 = new DateField('RangeEnd','Range End',$this->RangeStartDate);
is that a bug or a feature ? ;) Or did i do something wrong ?
thanks in advance
11 June 2010 at 10:12am
just solved it. If there is somebody who got the same issue:
setConfig('dateformat','dd/MM/y') produces the correct Year value
setConfig('dateformat','dd/MM/Y') produces a wrong Year
|Go to Top|