iipc / jwarc

Java library for reading and writing WARC files with a typed API
Apache License 2.0
46 stars 8 forks source link

RecordBuilder: Date/Timestamp truncated if .date(..) is called before .version(WARC_1_1) #58

Closed lambdaupb closed 3 years ago

lambdaupb commented 3 years ago

Fixed by calling version first, but I'd argue the truncation should happen on .build() once it's certain it is needed.

ato commented 3 years ago

Good catch. Thanks!