build-helper-maven-plugin icon indicating copy to clipboard operation
build-helper-maven-plugin copied to clipboard

Need option to use current time zone in generating timestamp.

Open garretwilson opened this issue 5 years ago • 4 comments

If I'm doing a Maven build, I want to generate a property using the timestamp-property in the format yyyy-MM-dd, but I want it to reflect the current time zone of the machine doing the build. (Thus I want it equivalent to a LocalDate saying what date the build was performed on; the time zone is irrelevant.)

But currently the timeZone defaults to GMT. Instead, the timeZone should default to the current JVM time zone to reflect the time zone of the build. If the developer wants to use GMT, they can specify that in the timeZone value.

As it stands, there is no way for the developer to indicate that the timestamp should be determined based upon the current JVM time zone.

garretwilson avatar Mar 03 '19 00:03 garretwilson