![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 340
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch, Pocketbook Touch HD
|
epub check mentiones an error
I know, epub checks have been discussed before, but still I want to mention it again
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: 44,963
Karma: 27109050
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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,963
Karma: 27109050
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 |
![]() |
![]() |
![]() |
#4 |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
|
![]() |
![]() |
![]() |
#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 |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 340
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch, Pocketbook Touch HD
|
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 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 416
Karma: 14682
Join Date: May 2008
Location: SF Bay Area
Device: Nook HD, Nook for Windows 8
|
2010-02-08T22:00:00 is not valid either (no timezone)
|
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,963
Karma: 27109050
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 |
![]() |
![]() |
![]() |
#9 | ||
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 416
Karma: 14682
Join Date: May 2008
Location: SF Bay Area
Device: Nook HD, Nook for Windows 8
|
Quote:
Valid W3C Formats from http://www.w3.org/TR/NOTE-datetime Quote:
|
||
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,963
Karma: 27109050
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.
|
![]() |
![]() |
![]() |
#11 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 416
Karma: 14682
Join Date: May 2008
Location: SF Bay Area
Device: Nook HD, 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: 44,963
Karma: 27109050
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. Last edited by kovidgoyal; 02-15-2010 at 01:12 AM. |
![]() |
![]() |
![]() |
#13 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,402
Karma: 314930086
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
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.... |
|
![]() |
![]() |
![]() |
#14 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,963
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
![]() 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. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |