From 33aafc6211de66ac59af6310e92b748b03b66c5d Mon Sep 17 00:00:00 2001 From: Joe Garcia <joe.garcia@ssec.wisc.edu> Date: Wed, 2 Feb 2022 09:51:43 -0600 Subject: [PATCH] fix utc timestamp in version --- ShellB3/shallbethree.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellB3/shallbethree.sh b/ShellB3/shallbethree.sh index 86e1fa96..46b45808 100755 --- a/ShellB3/shallbethree.sh +++ b/ShellB3/shallbethree.sh @@ -59,7 +59,7 @@ export BASE=$PWD ID="$Id$" if [ -d ../.git ] ; then REVNUM=GIT$( git rev-parse --verify HEAD --short ) - REVDATE=$( ${ANYPYTHON} -c "from datetime import datetime; print(datetime.fromtimestamp( float( $( git show -s --format=\"%ct\") ) ).strftime(\"%Y%m%d\"))" ) + REVDATE=$( ${ANYPYTHON} -c "from datetime import datetime; print(datetime.utcfromtimestamp( float( $( git show -s --format=\"%ct\") ) ).strftime(\"%Y%m%d\"))" ) elif [ -d .svn ] ; then REVNUM=$(echo $ID |cut -f 3 -d ' ') REVDATE=$(echo $ID |cut -f 4 -d ' ' |sed s/-//g) -- GitLab