bug #2948: fix bug with localtime in xen

(cherry picked from commit 329752bc01f4e699f2446b4b94a66f83a601a7f5)