Skip to content

Commit

Permalink
Fix local time in BuildInfo class
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
  • Loading branch information
pditommaso committed Dec 20, 2023
1 parent 410c745 commit b70d646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/nf-commons/src/main/nextflow/BuildInfo.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ class BuildInfo {
return ''
}

final utc = getTimestampUTC().split(' ')
final loc = getTimestampLocal().split(' ')
final utc = getTimestampUTC().tokenize(' ')
final loc = getTimestampLocal().tokenize(' ')

final result = utc[0] == loc[0] ? loc[1,-1].join(' ') : loc.join(' ')
return "($result)"
Expand Down

0 comments on commit b70d646

Please sign in to comment.