fix(user/calcGalTick):Specify timezone as UTC
authorSteven Baltakatei Sandoval <baltakatei@gmail.com>
Sat, 9 Sep 2023 17:35:40 +0000 (17:35 +0000)
committerSteven Baltakatei Sandoval <baltakatei@gmail.com>
Sat, 9 Sep 2023 17:35:40 +0000 (17:35 +0000)
user/calcGalTick.sh

index b4965dce219c8b83a9b82b218c2680cd42457a08..f69258990fb3819b2b61594329ff312b57537aff 100644 (file)
@@ -5,7 +5,7 @@
 #        arg2: int   end index
 # Example: ./calcGalTick.sh 0 250
 # Depends: bc 1.07.1; date (GNU coreutils) 8.32
-# Version: 0.0.1
+# Version: 0.0.2
 # Ref/Attrib: [1] Galactic Tick Day Calendar. (2021-10-20). https://github.com/GalacticTick/GalacticTick.github.io/blob/master/documents/press-3.pdf
 
 # Galactic Tick duration equation (seconds)
@@ -42,8 +42,8 @@ printGalTickDate() {
     ueTick="$( echo "$ueTickEq" | bc -l )";
 
     # Print calendar date
-    #output="$(date --date="@$ueTick" +%Y-%m-%dT%H:%M:%S%z)";
-    output="$(date --date="@$ueTick" +%Y-%m-%d)";
+    #output="$(TZ=UTC date --date="@$ueTick" +%Y-%m-%dT%H:%M:%S%z)";
+    output="$(TZ=UTC date --date="@$ueTick" +%Y-%m-%d)";
 
     printf "%s\n" "$output";
 }; # print ISO-8601 calendar date of tick