Skip to content
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

ensure timestamp is stable for a record #321

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mkeskells
Copy link
Contributor

with wallclock time (and any other time source that isn't dependents on stable data ) the fields of a formatted timestamp should refer to the same time for the duration of the formatting of the Template

This small change ensure that the timestamp is calculated only if any timestamp filed is needed, and that same time is used for other fields, so you don't get a weird result form the formatter is System.currentTimeMillis changes between calls

it also removes the duplication of the definition of the supported time fields that are supported

@mkeskells mkeskells requested review from a team as code owners October 30, 2024 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant