From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Sturmfels Subject: bug#35746: Evolution calendar gets the timezone wrong Date: Thu, 16 May 2019 22:57:06 +1000 Message-ID: <87v9yasgkd.fsf@sturm.com.au> References: <8736lfrh6y.fsf@sturm.com.au> <87y336hct1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:58734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRFxX-0000AE-Os for bug-guix@gnu.org; Thu, 16 May 2019 08:58:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRFxT-0003O5-TH for bug-guix@gnu.org; Thu, 16 May 2019 08:58:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41067) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRFxS-0003Mq-M3 for bug-guix@gnu.org; Thu, 16 May 2019 08:58:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hRFxR-0001bN-SK for bug-guix@gnu.org; Thu, 16 May 2019 08:58:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87y336hct1.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 35746@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, On Thu, 16 May 2019, Ludovic Court=C3=A8s wrote: > Ben Sturmfels skribis: > >> In Evolution though, all my calendar events show up in UTC time, so I >> have appointments showing up at eg. 1am. >> >> When I go to Edit, Preferences, Calendar and Task, General, under >> timezone it says: >> >> [x] Use system time (UTC) > > Could you figure out how Evolution determines what the current time zone > is? > > Guix provides /etc/localtime, which is what libc functions use, but I=E2= =80=99m > guessing Evolution uses a custom framework, possibly involving a > hard-to-believe network of D-Bus services. One clue is that when I run `evolution` in a terminal it logs the following error: (evolution:4359): libecal-CRITICAL **: 17:22:46.073: e_cal_util_get_system_= timezone: assertion 'location !=3D NULL' failed So my C troubleshooting skills are very rusty, but this is a learning opportunity! `strace evolution 2>&1 | grep /etc/localtime` indicates /etc/localtime is being opened at least. I've downloaded the source with `guix build --source evolution-data-server`, extracted and found the the function "e_cal_util_get_system_timezone()" at src/calendar/libecal/e-cal-util.c:1507 which calls down to "system_timezone_find()" in e-cal-system-timezone.c:522 where it looks up the timezone and compares it to a list of valid zones. So I run `gdb evolution`, but don't seem to have the debugging symbols. How does one get/build the debugging symbols? Can `guix build` help with this? Possibly completely unrelated, but noting that both icecat and chromium do this - which is wrong: > new Date().getTimezoneOffset() 0 Where node does this - which is correct: > new Date().getTimezoneOffset() =2D600 Cheers, Ben --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEPn825zvdanEG+SAhAjwF4snAaPAFAlzdXiIACgkQAjwF4snA aPCKLg//XQ1Z0sd4T8KRg4KQezGR9WSST8pwMgpPcPURFvE9OgQbByPlTkXPzXBE bUkmKKiyfg9y9yASI+pc62+Z6ErxfaztZH7HMgHq7qiN7lvZFuS3ByL1CiS9HB13 WX9DpGvmOXXv6YSodpNywewz4PGRl2sXNM1/On/36ZnLWrH9YRBhcP0eXYmSflKI 8x7iBQyNv8PLuFGnR+pAKrnJSh+LmPmZOH6WTAyjtGHOlvQ6vTRKxXIsS5M6Xjaf bHknzWqN0nAO+qylN1pVlY2C510ITeysQD4rM/5U01p6DM/73Hjpk6imw0pYhQo8 do8Z5M547VjeXGNufUcNZnzEZseaL65swErALpRBNLWaQ/dP0Nuk+B7wTVWYaNzG ViqAEncySCw5hHqYFB8bNwGuFFZLx3oNmUwXrEmLiyMFHtFFNY3X+IXUDXrJ90Dk kvQhxhta2AOL1ZbZtIOnMKtwMV9T97XurtyE2XYA0Ul46NsSkRYdCTAHaMKPRXps dDVQSNRFEHqJyv+ICF0FcQqFBEQSnvUUe1qlq5PLqBeYfyhS1dWS9nUPY+Jikeop jZF40CMiGun7FaJivZLLzWaYLgi7gmOyYx7sJsk0dXTDJZq5vieM17A10y2VsTbm Dc789H4c8Dndkuk8q591nXErTsgsIyHX3WGp4z25SkvHemOzR0k= =29Z7 -----END PGP SIGNATURE----- --=-=-=--