diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-09-16 13:35:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 13:35:28 +0100 |
commit | 47875491f077284e8a10889a1677d1e469f7cdc4 (patch) | |
tree | 74bd95a78c8baa6802ed201cdb003947b5eb6da2 | |
parent | 8aa626a19d574776b857da7c3d358f70210e733a (diff) | |
parent | 053fb305dac2daf3548dc6f9aed6cbfa7405b00f (diff) | |
download | vyos-1x-47875491f077284e8a10889a1677d1e469f7cdc4.tar.gz vyos-1x-47875491f077284e8a10889a1677d1e469f7cdc4.zip |
Merge pull request #4075 from vyos/mergify/bp/circinus/pr-4071
op-mode: T6715: manually changing time/date is not synced into hardware clock (backport #4071)
-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> |