[Bug 349016] Re: xls2csv outputs wrong date from date fields

wizhippo wizhippo at gmail.com
Thu Aug 27 15:35:26 UTC 2009


I should have added incase that site does not work

   #####
   --- xlsparse.c.ORIG     2007-03-09 13:42:17.000000000 -0300
   +++ xlsparse.c  2007-03-09 13:42:35.000000000 -0300
   @@ -384,8 +384,13 @@
                           formatTable[formatTableIndex++] = formatIndex;
                           break;
                   } 
   -       case MS1904: /* Macintosh 1904 date system */ 
   -               date_shift=24107.0; 
   +       case MS1904: /* Macintosh 1904 date system */
   +               if (reclen < 2) {
   +                   perror("MS1904 record should have length >= 2");
   +                   exit(1);
   +               }
   +               if (getshort(rec, 0) == 1) 
   +                   date_shift=24107.0;
                   break;   

   ####

-- 
xls2csv outputs wrong date from date fields
https://bugs.launchpad.net/bugs/349016
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list