Skip to content

Commit 024b3f2

Browse files
committed
Add timezone to date format
Signed-off-by: Paolo Di Tommaso <[email protected]>
1 parent d1cae3b commit 024b3f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/nf-commons/src/main/nextflow/util/SysHelper.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class SysHelper {
3737

3838
public static final String DEFAULT_DOCKER_PLATFORM = 'linux/amd64'
3939

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

4242
/**
4343
* Given a timestamp as epoch time convert to a string representation

modules/nf-commons/src/test/nextflow/util/SysHelperTest.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ class SysHelperTest extends Specification {
8888

8989
where:
9090
dateInMilis | locale | expected
91-
1470901220000 | 'en' | '11-Aug-2016 09:40'
92-
1470901220000 | 'es' | '11-Aug-2016 09:40'
91+
1470901220000 | 'en' | '11-Aug-2016 09:40 +0200'
92+
1470901220000 | 'es' | '11-Aug-2016 09:40 +0200'
9393
}
9494

9595
}

0 commit comments

Comments
 (0)