Implement configurable date time format with timezone support#6013
Merged
pditommaso merged 12 commits intomasterfrom Aug 14, 2025
Merged
Implement configurable date time format with timezone support#6013pditommaso merged 12 commits intomasterfrom
pditommaso merged 12 commits intomasterfrom
Conversation
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
✅ Deploy Preview for nextflow-docs-staging canceled.
|
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
This comment was marked as outdated.
This comment was marked as outdated.
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
b4b321e to
069653d
Compare
…FORMAT - Add configurable date formatting via NXF_DATE_FORMAT environment variable - Support ISO format with timezone (NXF_DATE_FORMAT=iso) - Default format changed to 'dd-MMM-yyyy HH:mm:ss' - Add OffsetDateTime support to SysHelper.fmtDate() - Update all notification templates to use configurable formatting: * Email notifications (HTML and text) * HTML execution reports * ANSI console output - Add comprehensive test coverage for all date format variations - Fix template binding to support SysHelper in notification templates 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add NXF_DATE_FORMAT to environment variables reference - Document version 25.07.0-edge availability - Add feature description to 25.10 migration guide with examples - Restore OffsetDateTime test that was accidentally removed - Document ISO format support and default format change 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements configurable date and time formatting support in Nextflow to make timestamps consistent and ISO-compliant across all outputs.
Features Added
NXF_DATE_FORMATenvironment variable allows users to customize date formattingNXF_DATE_FORMAT=isofor ISO 8601 format with timezone information (2016-08-11T09:40:20+02:00)dd-MMM-yyyy HH:mm:ss(includes seconds for better precision)Technical Implementation
OffsetDateTimeobjects commonly used in workflow metadataSysHelperformatting methodsUsage Examples
Documentation Added
NXF_DATE_FORMATdocumentation with version25.07.0-edge25.07.0-edgeFiles Modified
SysHelper.groovy- Core formatting logic with environment variable supportnotification.html¬ification.txt- Email template updatesReportTemplate.html- HTML report template updatesAnsiLogObserver.groovy- Console output formattingWorkflowNotifier.groovy&ReportObserver.groovy- Template binding fixesdocs/reference/env-vars.md- Environment variable documentationdocs/migrations/25-10.md- Feature documentation and examplesTesting
OffsetDateTimesupportThis addresses the inconsistency issues mentioned in #4754 by providing a centralized, configurable date formatting system.
🤖 Generated with Claude Code