Skip to content

Commit b0b30c8

Browse files
Templates: Output timestamps in the RFC 3339 format using 'date' call that should work on all platforms - not just GNU
1 parent 8fc2caa commit b0b30c8

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: future.batchtools
2-
Version: 0.12.2-9987
2+
Version: 0.12.2-9988
33
Depends:
44
R (>= 3.2.0),
55
parallelly,

inst/templates/bash.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ exec > <%= log.file %> 2>&1
4747
} %>
4848

4949
echo "Session information:"
50-
echo "- timestamp: $(date)"
50+
echo "- timestamp: $(date +"%Y-%m-%d %H:%M:%S%z")"
5151
echo "- hostname: $(hostname)"
5252
echo "- Rscript path: $(which Rscript)"
5353
echo "- Rscript version: $(Rscript --version)"

inst/templates/lsf.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fi
7676
} %>
7777

7878
echo "Session information:"
79-
echo "- timestamp: $(date)"
79+
echo "- timestamp: $(date +"%Y-%m-%d %H:%M:%S%z")"
8080
echo "- hostname: $(hostname)"
8181
echo "- Rscript path: $(which Rscript)"
8282
echo "- Rscript version: $(Rscript --version)"

inst/templates/openlava.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fi
7676
} %>
7777

7878
echo "Session information:"
79-
echo "- timestamp: $(date)"
79+
echo "- timestamp: $(date +"%Y-%m-%d %H:%M:%S%z")"
8080
echo "- hostname: $(hostname)"
8181
echo "- Rscript path: $(which Rscript)"
8282
echo "- Rscript version: $(Rscript --version)"

inst/templates/sge.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fi
8585
} %>
8686

8787
echo "Session information:"
88-
echo "- timestamp: $(date)"
88+
echo "- timestamp: $(date +"%Y-%m-%d %H:%M:%S%z")"
8989
echo "- hostname: $(hostname)"
9090
echo "- Rscript path: $(which Rscript)"
9191
echo "- Rscript version: $(Rscript --version)"

inst/templates/slurm.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fi
7575
} %>
7676

7777
echo "Session information:"
78-
echo "- timestamp: $(date)"
78+
echo "- timestamp: $(date +"%Y-%m-%d %H:%M:%S%z")"
7979
echo "- hostname: $(hostname)"
8080
echo "- Rscript path: $(which Rscript)"
8181
echo "- Rscript version: $(Rscript --version)"

inst/templates/torque.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ fi
7979
} %>
8080

8181
echo "Session information:"
82-
echo "- timestamp: $(date)"
82+
echo "- timestamp: $(date +"%Y-%m-%d %H:%M:%S%z")"
8383
echo "- hostname: $(hostname)"
8484
echo "- Rscript path: $(which Rscript)"
8585
echo "- Rscript version: $(Rscript --version)"

0 commit comments

Comments
 (0)