fix(user/bkdatev):Unset LC_TIME so date can use locale-specific %c
authorSteven Baltakatei Sandoval <baltakatei@gmail.com>
Tue, 29 Nov 2022 07:45:45 +0000 (07:45 +0000)
committerSteven Baltakatei Sandoval <baltakatei@gmail.com>
Tue, 29 Nov 2022 07:45:45 +0000 (07:45 +0000)
user/bkdatev

index 5174fad5d2a872bf4f925d8bbb3f35f64688872a..22ff3103bdaeded393da434eec4d54af77e2d283 100755 (executable)
@@ -2,7 +2,7 @@
 # Desc: Baltakatei's verbose date command
 # Usage: bkdatev [args]
 # Example: bkdatev --date="2001-09-11T09:02:59-04"
 # Desc: Baltakatei's verbose date command
 # Usage: bkdatev [args]
 # Example: bkdatev --date="2001-09-11T09:02:59-04"
-# Version: 0.2.1
+# Version: 0.2.2
 # Ref/Attrib: [1] "ISO 8601". Wikipedia. https://en.wikipedia.org/wiki/ISO_8601
 #             [2] "Changing the Locale in Wine" https://stackoverflow.com/a/16428951
 #             [3] "Shanghai vs Beijing" https://bugs.launchpad.net/ubuntu/+source/libgweather/+bug/228554
 # Ref/Attrib: [1] "ISO 8601". Wikipedia. https://en.wikipedia.org/wiki/ISO_8601
 #             [2] "Changing the Locale in Wine" https://stackoverflow.com/a/16428951
 #             [3] "Shanghai vs Beijing" https://bugs.launchpad.net/ubuntu/+source/libgweather/+bug/228554
@@ -44,6 +44,7 @@ print_dateline() {
     }; # print line of dates
 main() {
     n_ln=0; # for line_sep()
     }; # print line of dates
 main() {
     n_ln=0; # for line_sep()
+    unset LC_TIME; # Fall back to time zone-specific locale settings.
     
     # format strings
     fs_iso8601="+%Y-%m-%dT%H:%M:%S%:::z"; # typical ISO-8601
     
     # format strings
     fs_iso8601="+%Y-%m-%dT%H:%M:%S%:::z"; # typical ISO-8601