How to correctly fake time?Setting timezonesHow to get time synced outputs (different timezones on...
How to help new students accept function notation
Traveling from Germany to other countries by train?
Why should public servants be apolitical?
12V lead acid charger with LM317 not charging
Our group keeps dying during the Lost Mine of Phandelver campaign. What are we doing wrong?
Did silent film actors actually say their lines or did they simply improvise “dialogue” while being filmed?
Print only the last three columns from file
What is the German idiom or expression for when someone is being hypocritical against their own teachings?
Why do proponents of guns oppose gun competency tests?
Getting an entry level IT position later in life
Can a Hogwarts student refuse the Sorting Hat's decision?
What are these mathematical groups in U.S. universities?
Does this put me at risk for identity theft?
Does this smartphone photo show Mars just below the Sun?
Why is Chromosome 1 called Chromosome 1?
Onenote - Reducing Storage Footprint on PC
Can external light meter replace the need for push/pull?
I was contacted by a private bank overseas to get my inheritance
"How do you solve a problem like Maria?"
Colleagues speaking another language and it impacts work
Based on what criteria do you add/not add icons to labels within a toolbar?
Count number of occurences of particular numbers in list
Can ads on a page read my password?
Making pause in a diagram
How to correctly fake time?
Setting timezonesHow to get time synced outputs (different timezones on servers)?ntp server problems. It is panicking and then I am 3hours aheadI set time to wrong time zone, how do I change it? (Debian)Unable to change time-zone properly, the time is still from the previous time-zonered hat Linux + UTC properties and hw clockUNIX Epoch Time verification in MATLABHow to force debian to use UTCsystem-wide timezone question -red hat enterprise 7Why does Linux add an hour to the time stamp of files from external device?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
In order to resolve a specific timezone related bug on a software project that I'm working on, I'm trying to replicate a change on the system's clock using timedatectl
to check my software behavior.
I'm trying to achieve that by running
timedatectl set-timezone America/New_York
timedatectl set-local-rtc 1
timedatectl set-ntp false
timedatectl set-time "2017-03-12 01:58:50" && hwclock -w
When I do that and run timedatectl
right after, I get the expected following time:
Local time: Sun 2017-03-12 01:58:51 EST
Universal time: Sun 2017-03-12 06:58:51 UTC
RTC time: Sun 2017-03-12 01:58:51
Time zone: America/New_York (EST, -0500)
System clock synchronized: no
systemd-timesyncd.service active: no
RTC in local TZ: yes
However, 10 seconds after this, when the minute changes (to xx:59
), the local and universal time kind of "reboot" to the current time
Local time: Wed 2019-08-07 21:01:41 EDT
Universal time: Thu 2019-08-08 01:01:41 UTC
RTC time: Sun 2017-03-12 01:58:57
Time zone: America/New_York (EDT, -0400)
System clock synchronized: no
systemd-timesyncd.service active: no
RTC in local TZ: yes
What am I missing here?
My setup is an Vagrant Ubuntu 18 VM (Linux vagrant 4.15.0-51 / vm box "bento/ubuntu-18.04").
time timezone
New contributor
streppel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
In order to resolve a specific timezone related bug on a software project that I'm working on, I'm trying to replicate a change on the system's clock using timedatectl
to check my software behavior.
I'm trying to achieve that by running
timedatectl set-timezone America/New_York
timedatectl set-local-rtc 1
timedatectl set-ntp false
timedatectl set-time "2017-03-12 01:58:50" && hwclock -w
When I do that and run timedatectl
right after, I get the expected following time:
Local time: Sun 2017-03-12 01:58:51 EST
Universal time: Sun 2017-03-12 06:58:51 UTC
RTC time: Sun 2017-03-12 01:58:51
Time zone: America/New_York (EST, -0500)
System clock synchronized: no
systemd-timesyncd.service active: no
RTC in local TZ: yes
However, 10 seconds after this, when the minute changes (to xx:59
), the local and universal time kind of "reboot" to the current time
Local time: Wed 2019-08-07 21:01:41 EDT
Universal time: Thu 2019-08-08 01:01:41 UTC
RTC time: Sun 2017-03-12 01:58:57
Time zone: America/New_York (EDT, -0400)
System clock synchronized: no
systemd-timesyncd.service active: no
RTC in local TZ: yes
What am I missing here?
My setup is an Vagrant Ubuntu 18 VM (Linux vagrant 4.15.0-51 / vm box "bento/ubuntu-18.04").
time timezone
New contributor
streppel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
In order to resolve a specific timezone related bug on a software project that I'm working on, I'm trying to replicate a change on the system's clock using timedatectl
to check my software behavior.
I'm trying to achieve that by running
timedatectl set-timezone America/New_York
timedatectl set-local-rtc 1
timedatectl set-ntp false
timedatectl set-time "2017-03-12 01:58:50" && hwclock -w
When I do that and run timedatectl
right after, I get the expected following time:
Local time: Sun 2017-03-12 01:58:51 EST
Universal time: Sun 2017-03-12 06:58:51 UTC
RTC time: Sun 2017-03-12 01:58:51
Time zone: America/New_York (EST, -0500)
System clock synchronized: no
systemd-timesyncd.service active: no
RTC in local TZ: yes
However, 10 seconds after this, when the minute changes (to xx:59
), the local and universal time kind of "reboot" to the current time
Local time: Wed 2019-08-07 21:01:41 EDT
Universal time: Thu 2019-08-08 01:01:41 UTC
RTC time: Sun 2017-03-12 01:58:57
Time zone: America/New_York (EDT, -0400)
System clock synchronized: no
systemd-timesyncd.service active: no
RTC in local TZ: yes
What am I missing here?
My setup is an Vagrant Ubuntu 18 VM (Linux vagrant 4.15.0-51 / vm box "bento/ubuntu-18.04").
time timezone
New contributor
streppel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
In order to resolve a specific timezone related bug on a software project that I'm working on, I'm trying to replicate a change on the system's clock using timedatectl
to check my software behavior.
I'm trying to achieve that by running
timedatectl set-timezone America/New_York
timedatectl set-local-rtc 1
timedatectl set-ntp false
timedatectl set-time "2017-03-12 01:58:50" && hwclock -w
When I do that and run timedatectl
right after, I get the expected following time:
Local time: Sun 2017-03-12 01:58:51 EST
Universal time: Sun 2017-03-12 06:58:51 UTC
RTC time: Sun 2017-03-12 01:58:51
Time zone: America/New_York (EST, -0500)
System clock synchronized: no
systemd-timesyncd.service active: no
RTC in local TZ: yes
However, 10 seconds after this, when the minute changes (to xx:59
), the local and universal time kind of "reboot" to the current time
Local time: Wed 2019-08-07 21:01:41 EDT
Universal time: Thu 2019-08-08 01:01:41 UTC
RTC time: Sun 2017-03-12 01:58:57
Time zone: America/New_York (EDT, -0400)
System clock synchronized: no
systemd-timesyncd.service active: no
RTC in local TZ: yes
What am I missing here?
My setup is an Vagrant Ubuntu 18 VM (Linux vagrant 4.15.0-51 / vm box "bento/ubuntu-18.04").
time timezone
time timezone
New contributor
streppel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
streppel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 42 mins ago
streppel
New contributor
streppel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 1 hour ago
streppelstreppel
1226 bronze badges
1226 bronze badges
New contributor
streppel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
streppel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
streppel is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f534466%2fhow-to-correctly-fake-time%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
streppel is a new contributor. Be nice, and check out our Code of Conduct.
streppel is a new contributor. Be nice, and check out our Code of Conduct.
streppel is a new contributor. Be nice, and check out our Code of Conduct.
streppel is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f534466%2fhow-to-correctly-fake-time%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown