diff --git a/wittyPi/daemon.sh b/wittyPi/daemon.sh index 5ff107b..be1ce18 100755 --- a/wittyPi/daemon.sh +++ b/wittyPi/daemon.sh @@ -16,7 +16,7 @@ cur_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) # utilities . "$cur_dir/utilities.sh" -log 'Witty Pi daemon (v2.66) is started.' +log 'Witty Pi daemon (v2.67) is started.' # log Raspberry Pi model pi_model=$(cat /proc/device-tree/model) diff --git a/wittyPi/utilities.sh b/wittyPi/utilities.sh index 4a912e2..a4b4f5d 100644 --- a/wittyPi/utilities.sh +++ b/wittyPi/utilities.sh @@ -160,7 +160,7 @@ get_utc_date_time() local datestr=$(date +%Y-) local curDate=$(date +%d) if [[ "$date" < "$curDate" ]] ; then - datestr+=$(date --date="$(date +%m) +1 month" +%m-) + datestr+=$(date --date="$(date +%Y-%m-15) +1 month" +%m-) else datestr+=$(date +%m-) fi @@ -208,7 +208,7 @@ get_local_date_time() local datestr=$(date +%Y-) local curDate=$(date +%d) if [[ "$date" < "$curDate" ]] ; then - datestr+=$(date --date="$(date +%m) +1 month" +%m-) + datestr+=$(date --date="$(date +%Y-%m-15) +1 month" +%m-) else datestr+=$(date +%m-) fi diff --git a/wittyPi/wittyPi.sh b/wittyPi/wittyPi.sh index 5d0275d..6e11841 100755 --- a/wittyPi/wittyPi.sh +++ b/wittyPi/wittyPi.sh @@ -15,7 +15,7 @@ echo '========================================================================== echo '| |' echo '| Witty Pi - Realtime Clock + Power Management for Raspberry Pi |' echo '| |' -echo '| < Version 2.66 > by UUGear s.r.o. |' +echo '| < Version 2.67 > by UUGear s.r.o. |' echo '| |' echo '================================================================================'