Skip to content

Add timezone to date format #6013

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/nf-commons/src/main/nextflow/util/SysHelper.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class SysHelper {

public static final String DEFAULT_DOCKER_PLATFORM = 'linux/amd64'

private static String DATE_FORMAT = 'dd-MMM-yyyy HH:mm'
private static String DATE_FORMAT = 'dd-MMM-yyyy HH:mm Z'

/**
* Given a timestamp as epoch time convert to a string representation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ class SysHelperTest extends Specification {

where:
dateInMilis | locale | expected
1470901220000 | 'en' | '11-Aug-2016 09:40'
1470901220000 | 'es' | '11-Aug-2016 09:40'
1470901220000 | 'en' | '11-Aug-2016 09:40 +0200'
1470901220000 | 'es' | '11-Aug-2016 09:40 +0200'
}

}
Loading