-
Notifications
You must be signed in to change notification settings - Fork 87
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
Time sync is wrong #186
Comments
@viktorbenei Thank you for report! |
Thanks! |
Any news on this topic? Setting the timezone is not working for me because of daylight saving adjustments :-( |
@fredericgaus as a temporary solution you could use |
@viktorbenei thanks for your answer. On Debian For some reasons the synchronized time also seems to be wrong or not UTC as expected by Debian as I get the following:
But the current UTC time is 7:56:16. So the synchronized UTC time is already wrong. In my Ubuntu, when I do |
@fredericgaus what worked for me was to enable the Parallels time sync feature for the Ubuntu VM, then SSH into the VM and call EDIT: for this to work I think you have to use the timezone in the VM which you use on your host. |
@viktorbenei thanks you reply. Sadly the Parallels time sync in my case do adjust the timezone to EET which is wrong. (My host runs on CEST). So this is not working for me :( |
@fredericgaus Unfortunately, the only tip I can get you now is to disable Time Sync feature and synchronize time on the VM side with config.vm.provider "parallels" do |prl|
prl.customize ["set", :id, "--time-sync", "off"]
end |
@legal90 thanks for the tip. As explained in the original issue report this does not work either. If I do, every minute the hours increase too. Doing an ntpd update every minute is not reliable enough then. Doing it every second is too much. I fear the only option I got currently is to get along with the much slower VirtualBox 👎 |
I have the same problem, (CEST timezone) Now switched my Mac "Closest City" to Parallels seams to sync the Time and Timezone correctly and i now have UTC zone and the same time as my mac. just need to remember that i need to add 2 hours to my time :) |
FYI at the moment we use this solution : We don't install the Parallels Tools, but rather we do a manual time sync after rolling back to a snapshot state, sending a You can find the code here, if that helps: https://github.com/bitrise-io/bitrise-machine/blob/dc80e95c61df322c27b8738287b69d69eb3cca89/cli/setup.go#L67 The point is, to not to mess with the timezone settings inside the VM you have to pass the time with the timezone information included. |
Fixed in v1.5.0
For Parallels Desktop 11+ it's enabled, but timezones are not affected:
|
Time sync only syncs the time but not the timezone. At the moment I'm in London,
date
printsFri May 29 17:24:13 BST 2015
on my Mac, when I rundate
in the vagrant managed Parallels Desktop VM I get the same time but with UTC timezoneFri May 29 17:24:13 UTC 2015
. FYI BST is UTC+1 at the moment - and this timezone issue cases problems with communicating Amazon services.The only solution so far is to turn time sync off. edit turning the time sync off in Parallels Desktop is only a very short term fix as PD10 probably does some CPU frequency optimization which messes up Ubuntu's own time sync and keeps adding an hour to the current time about every minute!
So the actual solution what worked is to set the timezone manually inside the VM (ubuntu:
sudo timedatectl set-timezone Europe/London
) and turn Parallels time sync on for the VM.Tech info
The text was updated successfully, but these errors were encountered: