[ https://issues.apache.org/jira/browse/LUCENE-6564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Uwe Schindler updated LUCENE-6564: ---------------------------------- Attachment: LUCENE-6564-trunk.patch LUCENE-6564-5x.patch Here patch for 5.x and trunk. In trunk I use the Java 8 Datetime API with Instant.now().toString(), in 5.x I added a comment why misusing FileTime. Please have in mind that the output is always in UTC. In Java 8 we could use local time, too, but this would make it identical for both cases. In addition, while running tests, we randomize the timezone, so the "local" date is bit useless... Any comments? > Normalize date format for IW in unit tests > ------------------------------------------ > > Key: LUCENE-6564 > URL: https://issues.apache.org/jira/browse/LUCENE-6564 > Project: Lucene - Core > Issue Type: Improvement > Components: general/test > Reporter: Ramkumar Aiyengar > Assignee: Ramkumar Aiyengar > Priority: Minor > Fix For: 5.3 > > Attachments: LUCENE-6564-5x.patch, LUCENE-6564-trunk.patch, > LUCENE-6564.patch, LUCENE-6564.patch, LUCENE-6564.patch > > > Noticed while debugging some IW output in an unit test that milliseconds were > not output in the date, changed this to reuse the date format used by > {{PrintStreamInfoStream}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org