libvirt xml: fix timezone syntax

Libvirt XML syntax require lowercase utc as 'basis' attribute.
This option is used only if 'timezone' property is set. And apparently
libvirt prior to 4.1.0 didn't support it for Xen at all. Which means the
setting is ignore prior to Qubes R4.1.
This commit is contained in:
Marek Marczykowski-Górecki 2019-06-21 20:36:24 +02:00
parent b6c4f8456f
commit 362e128ec6
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -77,9 +77,9 @@
{% if timezone == 'localtime' %} {% if timezone == 'localtime' %}
<clock offset="variable" adjustment="0" basis="localtime" /> <clock offset="variable" adjustment="0" basis="localtime" />
{% elif timezone.isdigit() %} {% elif timezone.isdigit() %}
<clock offset="variable" adjustment="{{ timezone }}" basis="UTC" /> <clock offset="variable" adjustment="{{ timezone }}" basis="utc" />
{% else %} {% else %}
<clock offset="variable" adjustment="0" basis="UTC" /> <clock offset="variable" adjustment="0" basis="utc" />
{% endif %} {% endif %}
{% else %} {% else %}
<clock offset='utc' adjustment='reset'> <clock offset='utc' adjustment='reset'>