From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvGn2-0002Wy-95 for qemu-devel@nongnu.org; Wed, 20 May 2015 23:04:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvGmz-0002Xo-1D for qemu-devel@nongnu.org; Wed, 20 May 2015 23:04:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvGmy-0002Xk-S4 for qemu-devel@nongnu.org; Wed, 20 May 2015 23:04:52 -0400 Message-ID: <555D4B53.1010009@redhat.com> Date: Wed, 20 May 2015 21:04:51 -0600 From: Eric Blake MIME-Version: 1.0 References: <33183CC9F5247A488A2544077AF1902086E86BFF@SZXEMA503-MBS.china.huawei.com> <555C9DA1.7060204@redhat.com> In-Reply-To: <555C9DA1.7060204@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Kb7dPEjle1Wmqlfi9APXNcjQCuSMT7TtL" Subject: Re: [Qemu-devel] [RFC] Can we convert UTC time to local time in Qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Gonglei (Arei)" , "qemu-devel@nongnu.org" Cc: "Huangpeng (Peter)" , "Herongguang (Stephen)" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Kb7dPEjle1Wmqlfi9APXNcjQCuSMT7TtL Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 05/20/2015 08:43 AM, Eric Blake wrote: >=20 > I'd rather stick with UTC in logs (but perhaps make it more obvious tha= t > the timestamp is UTC by actually sticking that string as part of the > timestamp - libvirt is not currently doing that). Actually, here's a libvirt log timestamp: 2015-05-17 02:29:06.931+0000: shutting down which includes the timezone offset (so while it doesn't state "UTC", it DOES state an unambiguous timezone, which happens to be UTC). Compare that to a qemu timestamp: (qemu) 2015-05-21T02:07:43.695065Z qemu-system-x86_64: test.... which is ALSO unambiguous (the trailing "Z" _is_ the UTC timezone). https://en.wikipedia.org/wiki/ISO_8601#UTC --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --Kb7dPEjle1Wmqlfi9APXNcjQCuSMT7TtL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJVXUtTAAoJEKeha0olJ0NqcX8IAKB4dUGIbmHLvjTfZug9ekYu MQ861ntIjI1woUc48O3KZzjTKS8blHGSkvUeqPVK1HhSiIdLEy7w1RuQV+f0WRoJ OYvBiu5nOHs0IudPP6TEw8yrYVLIR0puX87q1rsHOd2mVjtVIn3rbTCZRix8IVIz HIPO08yHGAx8z5u//DAZHsVDbAt6kf++Wf/DU7Ce8Szn3vqDPRHyyD5mAm0S5Q4/ DaQ0Tkaqv0OQk/B1oOgCKWm0x0RFA9Jvj3Lief+iuMYbpozk6ZFCKIFrmRWgI0Wh dbBezVvId34vN1oYDrHX5LKkak43OWn3NfYBo21lxMp/gNZLjcgNNZ4NwFIXF5Y= =nKQo -----END PGP SIGNATURE----- --Kb7dPEjle1Wmqlfi9APXNcjQCuSMT7TtL--