-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need option to use current time zone in generating timestamp. #75
Comments
Or is the documentation incorrect when it indicates that the default value is |
Can we reopen this? I don't see that this was ever addressed. Let's say that I have this: <execution>
<id>set-build-date</id>
<goals>
<goal>timestamp-property</goal>
</goals>
<configuration>
<locale>en</locale>
<timeSource>build</timeSource>
<timeZone>UTC</timeZone>
<name>build.date</name>
<pattern>yyyy-MM-dd</pattern>
</configuration>
</execution> I want this to show the date the build was started. But if I'm sitting in Miami, Florida working late on 2021-02-03, it's already 2021-02-04 in UTC. (That's just one example.) I want the build date to indicate 2021-02-03; thus The need here is different based upon the pattern. If I want a full timestamp, then yes I would want UTC. (I don't think I would every want GMT, which is effectively obsolete.) |
I notice that all these issues that I have posted keep getting closed by the bot repeatedly over the years, with no sign that any human has looked into them. Could I ask if this project is still active? |
Hi, yes this project is active and volunteers do pr review |
If I'm doing a Maven build, I want to generate a property using the
timestamp-property
in the formatyyyy-MM-dd
, but I want it to reflect the current time zone of the machine doing the build. (Thus I want it equivalent to aLocalDate
saying what date the build was performed on; the time zone is irrelevant.)But currently the
timeZone
defaults toGMT
. Instead, thetimeZone
should default to the current JVM time zone to reflect the time zone of the build. If the developer wants to useGMT
, they can specify that in thetimeZone
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.
The text was updated successfully, but these errors were encountered: