fix(unitproc):Minor copypasta error in comments
[BK-2020-03.git] / unitproc / bktemp-dateShort
index 425cf85a00ea386b12ae7aa5a2ce5e93ba65383f..26086454591097dfa984128907a7cab3bb99e3d7 100644 (file)
@@ -6,6 +6,7 @@ dateShort(){
     # Desc: Date without separators (YYYYmmdd)
     # Usage: dateShort
     # Output: stdout: date (ISO-8601, no separators)
     # Desc: Date without separators (YYYYmmdd)
     # Usage: dateShort
     # Output: stdout: date (ISO-8601, no separators)
+    local TIME_CURRENT DATE_CURRENT_SHORT
     TIME_CURRENT="$(date --iso-8601=seconds)" ; # Produce `date`-parsable current timestamp with resolution of 1 second.
     DATE_CURRENT_SHORT="$(date -d "$TIME_CURRENT" +%Y%m%d)"; # Produce separator-less current date with resolution 1 day.
     echo "$DATE_CURRENT_SHORT";
     TIME_CURRENT="$(date --iso-8601=seconds)" ; # Produce `date`-parsable current timestamp with resolution of 1 second.
     DATE_CURRENT_SHORT="$(date -d "$TIME_CURRENT" +%Y%m%d)"; # Produce separator-less current date with resolution 1 day.
     echo "$DATE_CURRENT_SHORT";