diff options
author | Christian Breunig <christian@breunig.cc> | 2024-09-16 11:39:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 11:39:39 +0200 |
commit | 11164c87635d779c41683b19d6d6e97d587c4267 (patch) | |
tree | a7f4323977a832a6a9179f649ade8f8ed0e27f5b | |
parent | be892a01be36df2d0530654f2d07707d2d402508 (diff) | |
parent | 835126e249c1a8b7ae87ac169a8eb9d2df979249 (diff) | |
download | vyos-1x-11164c87635d779c41683b19d6d6e97d587c4267.tar.gz vyos-1x-11164c87635d779c41683b19d6d6e97d587c4267.zip |
Merge pull request #4071 from c-po/date-time-T6715
op-mode: T6715: manually changing time/date is not synced into hardware clock
-rw-r--r-- | op-mode-definitions/date.xml.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/op-mode-definitions/date.xml.in b/op-mode-definitions/date.xml.in index 6d8586025..4e62a8335 100644 --- a/op-mode-definitions/date.xml.in +++ b/op-mode-definitions/date.xml.in @@ -35,7 +35,7 @@ <list><MMDDhhmm> <MMDDhhmmYY> <MMDDhhmmCCYY> <MMDDhhmmCCYY.ss></list> </completionHelp> </properties> - <command>/bin/date "$3"</command> + <command>sudo bash -c "/bin/date '$3' && hwclock --systohc --localtime"</command> </tagNode> </children> </node> |