PHP Classes

dateformat

Recommend this page to a friend!

      EPub  >  All threads  >  dateformat  >  (Un) Subscribe thread alerts  
Subject:dateformat
Summary:problem with epubcheck-1.0.5
Messages:4
Author:Joan Jofra
Date:2010-04-14 08:40:28
Update:2010-04-14 10:53:06
 

  1. dateformat   Reply   Report abuse  
Picture of Joan Jofra Joan Jofra - 2010-04-14 08:40:28
in line 34 your are using:
private $dateformat = 'Y-m-d\TH:i:s.uP'; // ISO 8601 long

but this statement conflicts with epubcheck-1.0.5

to avoid this problem I've changed to
private $dateformat = 'Y-m-d';

I know your dateformat is correct, but I'm trying to reduce the number 'problmes' wiht epubcheck

thanks for your work

Joan


  2. Re: dateformat   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2010-04-14 08:53:28 - In reply to message 1 from Joan Jofra
Thanks.
I didn't even know about ePubcheck :)

I'll update the line in ePub once I've confirmed that it won't cause problems.
I discovered that the u is a problem if you run on PHP < 5.2 and was planning on just typing the micro seconds as 000000

  3. Re: dateformat   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2010-04-14 09:58:48 - In reply to message 1 from Joan Jofra
Uploaded a new version, where I added a new function, setShortDateFormat() to solve your problem.

The bug is in ePubChecker and Kevin Goyal, of Calibre fame, have already filed a bug report on ePubChecker regarding this issue.

  4. Re: dateformat   Reply   Report abuse  
Picture of Joan Jofra Joan Jofra - 2010-04-14 10:53:06 - In reply to message 3 from Asbjorn Grandt

that's a short response time :-)

thanks