Developer's Diary
Daily software development, with Terry Ebdon
Configuration saves the day

Sunday 2nd July, 2017

The unwanted '0' prefix

Last night I discovered an annoying date issue: WebDoxy's -d option was adding a leading '0' to the date. As I suspected, it was fixable with a simple configuration change. Java's SimpleDateFormat class pads the day number when multiple 'd' characters are used. WebDoxy reads date format strings from a configuration file, config.groovy, so this was a really simple fix:

WebDoxy-fix-for-issue-3.PNG

Interesting web pages


1st July 👈 Top of page 👉 3rd July © 2017 Terry Ebdon

Find me on coding on BitBucket, networking on LinkedIn and hanging out on twitter.