From 68a13a620de94677073bcddf36bef8093178108b Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Mon, 17 Apr 2023 15:21:53 +0700 Subject: [PATCH] date format update --- files/pushgit.sh | 3 ++- files/pushgit_inotify.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/files/pushgit.sh b/files/pushgit.sh index e816c09..718879b 100644 --- a/files/pushgit.sh +++ b/files/pushgit.sh @@ -2,7 +2,8 @@ echo $(hostname) > /mnt/data/etc/vestasync/hostname export GIT_AUTHOR_NAME="vestasync_wb_$(hostname)" export GIT_COMMITTER_NAME="vestasync_wb_$(hostname)" +export LC_TIME=en_GB.UTF-8 cd /mnt/data/etc/ > /dev/null 2>&1 || true git add . > /dev/null 2>&1 || true -git commit -m "$(date)" > /dev/null 2>&1 || true +git commit -m "$(date +"%Y-%m-%d %H:%M:%S %z %Z")" > /dev/null 2>&1 || true git push -u origin master > /dev/null 2>&1 || true diff --git a/files/pushgit_inotify.sh b/files/pushgit_inotify.sh index 86d8940..0566d64 100644 --- a/files/pushgit_inotify.sh +++ b/files/pushgit_inotify.sh @@ -6,8 +6,9 @@ do echo $(hostname) > /mnt/data/etc/vestasync/hostname export GIT_AUTHOR_NAME="vestasync_wb_$(hostname)_inotify" export GIT_COMMITTER_NAME="vestasync_wb_$(hostname)_inotify" + export LC_TIME=en_GB.UTF-8 cd /mnt/data/etc/ git add . - git commit -m "$(date)" + git commit -m "$(date +"%Y-%m-%d %H:%M:%S %z %Z")" # > /dev/null 2>&1 || true git push -u origin master done