build-helper-maven-plugin
build-helper-maven-plugin copied to clipboard
Need option to use current time zone in generating timestamp.
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.