document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. @@ -401,6 +401,7 @@
  2.                                      );
  3.                          }else{
  4.                              $isdate = FALSE;
  5. +                            $formatstr = \'\';
  6.                              if ($indexCode > 0){
  7.                                 if (isset($this->formatRecords[$indexCode]))
  8.                                     $formatstr = $this->formatRecords[$indexCode];
  9. @@ -413,8 +414,10 @@
  10.                                      $formatstr = str_replace(\'h\', \'H\', $formatstr);
  11.                                      //echo "\\ndate-time $formatstr \\n";
  12.                                  }
  13. +                                if ($formatstr == \'i/dd/yyyy\') { // found day and time format
  14. +                                    $formatstr = \'Y-m-d\';
  15. +                                }
  16.                              }
  17. -
  18.                              if ($isdate){
  19.                                  $this->formatRecords[\'xfrecords\'][] = array(
  20.                                          \'type\' => \'date\',
  21. @@ -714,7 +717,7 @@
  22.          if ($numValue > 1){
  23.              $utcDays = $numValue - ($this->nineteenFour ? Spreadsheet_Excel_Reader_utcOffsetDays1904 : Spreadsheet_Excel_Reader_utcOffsetDays);
  24.              $utcValue = round($utcDays * Spreadsheet_Excel_Reader_msInADay);
  25. -            $string = date ($this->curformat, $utcValue);
  26. +            $string = date ($this->curformat, $utcValue + 86400);
  27.              $raw = $utcValue;
  28.          }else{
  29.              $raw = $numValue;
');