|
|
#1 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 298
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch
|
epub check mentiones an error
I have a public domain html file that I converted into xhtml 1.1 (it is valid). Then I converted it into epub with the latest edition of calibre (I always use the latest version). Then I let it run through an epub check (threepress.org which uses epub check 1.0.5) Everything was o.k. except for 1 error: ERROR: Rosenresli - Johanna Spyri.epub/content.opf(10): date value '2010-02-08T22:00:00' is not valid, YYYY[-MM[-DD]] expected Member Netseeker told me that Dublin Core recommends the usage of either just the year (YYYY) or year+month (YYYY-MM) ... So I edited line 10 of the content.opf and removed the time setting, so that only the 2010-02-08 was left - and now the epub file passed the epub check. Is there a way how I can keep the time setting out of the convertion ? Or do I have to remove it every time, by myself ? Thanks in advance |
|
|
|
|
|
#2 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,488
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
In this instance I happen to think that DC is wrong. There is no harm in storing extra information in the date field, as this can be useful for publications other than novels, like magazines/newspapers. So this is not going to change.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,488
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Oh and I just had a look at the OPF 2.0 spec. It does not require the date field to be restricted to only days and not times.
http://www.idpf.org/2007/opf/OPF_2.0...ec.html#TOC2.2
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#4 |
|
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,979
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3 and Fire
|
|
|
|
|
|
|
#5 |
|
Groupie
![]() ![]() ![]() ![]() ![]() Posts: 195
Karma: 414
Join Date: Jan 2010
Location: Bend, OR
Device: Sony PRS-600
|
In the interest of getting tool problems fixed - can one of you report it to EPubcheck?
Thanks! Robert |
|
|
|
|
|
#6 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 298
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch
|
thanks for all the replies.
I was already surprised in the beginning, when epub check gave out this error, because in the past I learned that calibre and the ebooks its creates are very reliable. |
|
|
|
|
|
#7 |
|
Corporate Drone (B&N)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 412
Karma: 14682
Join Date: May 2008
Location: SF Bay Area
Device: Nook for Windows 8
|
2010-02-08T22:00:00 is not valid either (no timezone)
|
|
|
|
|
|
#8 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,488
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
According to the following links
if a timezone is omitted it is assumed to be a local time zone http://www.cl.cam.ac.uk/~mgk25/iso-time.html#zone http://en.wikipedia.org/wiki/ISO_8601#Times
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#9 | ||
|
Corporate Drone (B&N)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 412
Karma: 14682
Join Date: May 2008
Location: SF Bay Area
Device: Nook for Windows 8
|
Quote:
Valid W3C Formats from http://www.w3.org/TR/NOTE-datetime Quote:
|
||
|
|
|
|
|
#10 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,488
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Writing timezones, is easy enough to do in calibre. Still wont fix the epubcheck problem though.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#11 |
|
Corporate Drone (B&N)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 412
Karma: 14682
Join Date: May 2008
Location: SF Bay Area
Device: Nook for Windows 8
|
It'd be interesting to see if writing out a correct W3C date did indeed fix the problem. It wouldn't be surprising if an error message was more restrictive than the actual code is.
|
|
|
|
|
|
#12 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,488
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Well the next release of calibre will generate timezone info as well, so should be easy to check.
I have to say that accepting dates without timezones, but not dates+times without timezones is one of the more asinine things I have seen.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. Last edited by kovidgoyal; 02-15-2010 at 01:12 AM. |
|
|
|
|
|
#13 | |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,289
Karma: 73595938
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
Quote:
Adding a time (hours:minutes) without time zone to a date only gives you the time to +/-12 hours. Then adding a time zone gives you the time +/- 30 seconds. So in this instance adding a time zone makes the reference 1440 times as precise. Perhaps this explains why I've never seen a date given with a time zone....
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Need professional help formatting your ebook? Send me email.....................Books I've read in 2013, 2012, 2011, 2010 |
|
|
|
|
|
|
#14 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,488
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
An excellent analysis But, looking at the W3C note, I see that date with timezone, but no time is actually illegal, which leads me to believe that the degree of accuracy improvement was not the motivation for this. The W3C seems to believe that having an accurate date is just plain wrong and should be discouraged.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Check Database Integrity - Error | ZakM | Calibre | 2 | 09-06-2010 03:20 AM |
| Error: Failed to check database integrity in v0.7.16 | irrationalJohn | Calibre | 6 | 08-29-2010 02:31 PM |
| Error on Check Database Integrity | Filigree | Calibre | 1 | 01-09-2010 01:21 AM |
| [Error] Check the integrity of the database | simonbcn | Calibre | 0 | 08-30-2009 12:11 PM |
| Data error- cyclic redudancy check | nikolaskejd | Bookeen | 21 | 06-05-2009 06:31 PM |