plombard / SubversionRiver

A River for ElasticSearch to index subversion repositories.
18 stars 4 forks source link

Wrong date format in SubversionRevision class #6

Open yngveh opened 10 years ago

yngveh commented 10 years ago

The constant DATE_TIME_ISO8601_FORMAT in class org.elasticsearch.river.subversion.type.SubversionRevision is using a wrong date format, It should be "yyyy-MM-dd'T'HH:mm:ss.SSSZ" instead of ""yyyy-MM-dd'T'hh:mm:ss.SSSZ". This cause the timestamp of the revision sometimes to be 12 hours wrong since it is onlyusing 0-12 values for the hour field.

plombard commented 10 years ago

Okay, thanks for the issue. I hadn't tested with 12hours format. Will be fixed in the next release.