fix wrong date/timezone

This commit is contained in:
Calin Crisan 2017-03-29 21:34:26 +03:00
parent 7fd3fdc833
commit f57d036853

View File

@ -40,7 +40,7 @@ source $conf
set_current_date_http() {
date_str=$(curl -v -s -m $date_timeout -X GET http://$date_host 2>&1 | grep Date | sed -e 's/< Date: //')
date -D "%a, %d %b %Y %H:%M:%S" -s "$date_str" > /dev/null
date -u -D "%a, %d %b %Y %H:%M:%S" -s "$date_str" > /dev/null
return $?
}