How can I manually set date and time to future in EC2 instance and make it permanent, so it won't reset after reboot ?
I can change date using this command:
$ sudo timedatectl set-time "2017-12-09 16:00:00"
$ timedatectl
Local time: Sat 2017-12-09 16:00:01 UTC
Universal time: Sat 2017-12-09 16:00:01 UTC
RTC time: Sat 2017-12-09 16:00:02
Time zone: Etc/UTC (UTC, +0000)
Network time on: no
NTP synchronized: no
RTC in local TZ: no
OS on EC2:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
What else should I do to make this permanent ?
The purpose of this adjustment is to set the date to future, so I can test few things.
Asked by Michal Przybylowicz
(471 rep)
Nov 2, 2017, 01:58 PM
Last activity: Jul 6, 2025, 01:08 AM
Last activity: Jul 6, 2025, 01:08 AM