mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
fix wrong date/timezone
This commit is contained in:
parent
7fd3fdc833
commit
f57d036853
@ -40,7 +40,7 @@ source $conf
|
|||||||
|
|
||||||
set_current_date_http() {
|
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_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 $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user