mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
The problem was because in cloudstack when a vm is stopped it gets destroyed on the host. For a windows vm the timeoffset (which can be set by changing the timezone from within the vm) is stored in the platform:timeoffset attribute of vm record. The information is lost when the vm is destroted. Made change to read and persist the platform:timeoffset vm attribute when an instance is stopped. The value is persisted in the user_vm_details table. When the vm is started again the attribute is set for the vm instance that gets created.