Tuesday, 2 August 2016

Magento Unknown date format, neither date nor time in ‘yyyy-MM-dd HH:mm:ss’ found

Issues resolved
go to  file \lib\Zend\Locale\Format.php      line number 827

                 $day   iconv_strpos($format'd');
        $month iconv_strpos($format'M');
        
$year  iconv_strpos($format'y');
        
$hour  iconv_strpos($format'H');
        
$min   iconv_strpos($format'm');
        
$sec   iconv_strpos($format's');
Replace the code

        $day   iconv_strpos($format'd',0,'UTF-8');
        
$month iconv_strpos($format'M',0,'UTF-8');
        
$year  iconv_strpos($format'y',0,'UTF-8');
        
$hour  iconv_strpos($format'H',0,'UTF-8');
        
$min   iconv_strpos($format'm',0,'UTF-8');
        
$sec   iconv_strpos($format's',0,'UTF-8');

and add the below code to add the following to your index.php:




iconv_set_encoding("internal_encoding","UTF-8");
iconv_set_encoding("output_encoding""ISO-8859-1");

Thanks,


4 comments:

  1. Hello Sir,

    i applied solution, But that is not working for me ...can you help me?

    ReplyDelete
  2. It is not working for me as well. It is not right solution.

    ReplyDelete
  3. Can anyone tell what is the correct solution to get our websites working back. Seems like all Magento-1 websites are down.

    ReplyDelete