View Full Version : Epub validation issues between versions


Russellsstudent
09-19-2012, 01:36 PM
I am having some difficulty with validation errors. I am running a validation on EPUB Validator version 2.0 and the documents are validating successfully
The distributor sent me this error message: "
type Epub Check version line number column number message
error 1.0.5 2 n/a date value '2012-09-07T17:10:17+00:00' is not valid, YYYY[-MM[-DD]] expected
v
any ideas why this is occurring?

Doitsu
09-19-2012, 01:47 PM
any ideas why this is occurring?
Because you used 2012-09-07T17:10:17+00:00 instead of 2012-09-07 somewhere in the .opf file.

Russellsstudent
09-19-2012, 03:20 PM
This co mingled date/time stamp was generated by calibre. I didn't enter it in any field

Russellsstudent
09-19-2012, 03:31 PM
How is the content.opf file populated? I didn't enter any info into the field in question. Can I change the flow of information into this field during the conversion process? I am like a kindergartener trying to build a refrigerator

mzmm
09-19-2012, 03:45 PM
any ideas why this is occurring?

i've used +00:00:00Z to indicate time zone in epub2 if necessary. so it would look like

<dc:date>2012-00-00T00:00:00+00:00Z</dc:date>

maybe ZULU is necessary for it to validate?

Doitsu
09-19-2012, 04:56 PM
The error message is being displayed because the publisher is using epubcheck 1.x. To fix this issue:

a)

- rename the .epub file to .zip
- open the archive
- locate the .opf file
- copy it to a different folder
- find the line with the date in it
- change it to 2012-09-07
- replace the .opf file with the updated version
- rename .zip file back to .epub

b)

- open the .epub with Sigil (http://code.google.com/p/sigil/downloads/list)
- Prese F8 and add/modify the creation date
- save the .epub