crowdagger / epub-builder

A Rust library for generating EPUB files
Mozilla Public License 2.0
135 stars 45 forks source link

Make date an optional value, conforming to spec #33

Closed dgel closed 1 year ago

dgel commented 1 year ago

See: https://idpf.org/epub/30/spec/epub30-publications.html#sec-opf-dcmes-optional

"The date element must only be used to define the publication date of the EPUB Publication. The publication date is not the same as the last modified date"

Note: I added this as a DateTime variable, separate from other metadata as

  1. This allows us to make sure the publication date is formatted properly
  2. the user likely already has the date in a DateTime anyway

However, I'm not sure this is the best design

crowdagger commented 1 year ago

Thanks!