Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

op-mode: T6715: manually changing time/date is not synced into hardware clock #4071

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

c-po
Copy link
Member

@c-po c-po commented Sep 15, 2024

Change Summary

When not using NTP and adjusting the current system time/date using set date the time is not saved across a reboot into the hardware RTC. This commit explicitly syncs the current time after a change into the systems RTC.

Most routers do not run without NTP (which is even a VyOS default) so the priority is pretty low.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

How to test

set date 0916140224

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

…re clock

When not using NTP and adjusting the current system time/date using set date
the time is not saved across a reboot into the hardware RTC. This commit
explicitly syncs the current time after a change into the systems RTC.

Most routers do not run without NTP (which is even a VyOS default) so the
priority is pretty low.
@c-po
Copy link
Member Author

c-po commented Sep 15, 2024

@Mergifyio backport sagitta circinus

Copy link

👍
No issues in PR Title / Commit Title

Copy link

mergify bot commented Sep 15, 2024

backport sagitta circinus

✅ Backports have been created

@c-po c-po merged commit 11164c8 into vyos:current Sep 16, 2024
15 of 16 checks passed
dmbaturin added a commit that referenced this pull request Sep 16, 2024
op-mode: T6715: manually changing time/date is not synced into hardware clock (backport #4071)
@c-po c-po deleted the date-time-T6715 branch September 16, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants