From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ihor Radchenko Subject: Bug: org-clock-total-time is calculated from midnight in UTC (not in current time zone) [9.1.4 (9.1.4-13-g84cb63-elpa @ /home/yantar92/.emacs.d/elpa/org-20171218/)] Date: Fri, 22 Dec 2017 09:55:51 +0800 Message-ID: <874lojv848.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="_c68bbd23-83ad-4b7f-8d98-5dbf7d678631_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eSCa5-0000S7-IM for emacs-orgmode@gnu.org; Thu, 21 Dec 2017 20:57:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eSCa2-0000s0-Bd for emacs-orgmode@gnu.org; Thu, 21 Dec 2017 20:57:01 -0500 Received: from mail-sg2apc01on0122.outbound.protection.outlook.com ([104.47.125.122]:7941 helo=APC01-SG2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eSCa0-0000n3-Uf for emacs-orgmode@gnu.org; Thu, 21 Dec 2017 20:56:58 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --_c68bbd23-83ad-4b7f-8d98-5dbf7d678631_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable This email may contain confidential and/or proprietary information that is = exempt from disclosure under applicable law and is intended for receipt and= use solely by the addressee(s) named above. If you are not the intended re= cipient, you are notified that any use, dissemination, distribution, or cop= ying of this email, or any attachment, is strictly prohibited. Please delet= e the email immediately and inform the sender. Thank You The above message may contain confidential and/or proprietary information t= hat is exempt from disclosure under applicable law and is intended for rece= ipt and use solely by the addressee(s) named above. If you are not the inte= nded recipient, you are hereby notified that any use, dissemination, distri= bution, or copying of this message, or any attachment, is strictly prohibit= ed. If you have received this email in error, please inform the sender imme= diately by reply e-mail or telephone, reversing the charge if necessary. Pl= ease delete the message thereafter. Thank you. --_c68bbd23-83ad-4b7f-8d98-5dbf7d678631_ Content-Type: message/rfc822 Authentication-Results: gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=none action=none header.from=mymail.sutd.edu.sg; Received: from localhost (202.94.70.51) by HK2PR0301MB1123.apcprd03.prod.outlook.com (2a01:111:e400:5896::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.366.3; Fri, 22 Dec 2017 01:56:45 +0000 From: Ihor Radchenko To: emacs-orgmode@gnu.org Subject: Bug: org-clock-total-time is calculated from midnight in UTC (not in current time zone) [9.1.4 (9.1.4-13-g84cb63-elpa @ /home/yantar92/.emacs.d/elpa/org-20171218/)] Date: Fri, 22 Dec 2017 09:55:51 +0800 Message-ID: <874lojv848.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-MS-Exchange-Organization-OriginalArrivalTime: 22 Dec 2017 01:56:45.1005 (UTC) X-MS-Exchange-Forest-ArrivalHubServer: HK2PR0301MB1123.apcprd03.prod.outlook.com X-MS-Exchange-Organization-Network-Message-Id: d282800c-3ad6-4a1c-d0fe-08d548df4138 X-MS-Exchange-Organization-OriginalClientIPAddress: 202.94.70.51 X-MS-Exchange-Organization-OriginalServerIPAddress: 2a01:111:e400:5896::28 X-MS-Exchange-Organization-AuthSource: HK2PR0301MB1123.apcprd03.prod.outlook.com X-MS-Exchange-Organization-AuthAs: Internal X-MS-Exchange-Organization-AuthMechanism: 06 X-Originating-IP: [202.94.70.51] X-ClientProxiedBy: SG2PR0601CA0024.apcprd06.prod.outlook.com (2603:1096:3::34) To HK2PR0301MB1123.apcprd03.prod.outlook.com (2a01:111:e400:5896::28) X-MS-Exchange-Organization-FromEntityHeader: Hosted X-MS-Exchange-Organization-MessageDirectionality: Originating X-MS-Exchange-Organization-Id: 3476b776-e990-4f72-b950-62489831623d Return-Path: ihor_radchenko@mymail.sutd.edu.sg X-MS-Exchange-Organization-Cross-Premises-Headers-Processed: HK2PR0301MB1123.apcprd03.prod.outlook.com X-MS-Exchange-Organization-TransportTrafficType: Email X-MS-Exchange-Organization-TransportTrafficSubType: X-MS-PublicTrafficType: Email X-MS-Exchange-Organization-Exchange-Diagnostics-Stage-SecureDataContainer: 0 X-MS-Exchange-Organization-Antispam-ProtocolFilterHub-ScanContext: ProtocolFilterHub:SmtpOnEndOfData; X-MS-Exchange-Organization-KnownHighVolumeSender: True X-MS-Exchange-Organization-AcceptedDomain: True X-MS-Office365-Filtering-Correlation-Id: d282800c-3ad6-4a1c-d0fe-08d548df4138 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060);SRVR:HK2PR0301MB1123; X-Microsoft-Exchange-Diagnostics: 1;HK2PR0301MB1123;3:VgNgh5p5DJ5SYj4i1cwbS2aVz/8ZVneHmEHh2rH4Uv9afxGGnKIPszguGDGOl4DXbcvaAKmjzmxNGr2E9RG7VVDgXvgWSgqvBDHa1lVv4cY8tsAOsAua2KGWF/dvpFGaMyOSc6g8QbvrWkvG/uCUSld/Ld/eO264QuEu+SQWmjlSfFm6i3OXp8P0k3rpA2D2xic/ZtFqLWRpMc9RqWGYxHAUwVhN5rQZVedsvxrMjGDBbK0aUp4+/iQbSRGmWZP+;25:D7VGf/EJuHZ08syulo73frn+UIp05paD/GAJvNhUpB3lIZBWnxwj4VQ8OFHsFYm64/gReztlUz2o9jFkBCroMPlsn0Zzgxy5H2RrfZX95Fm45MVMQrzurj6n0W9fn9IlYmBMakkgDVsR2jgurN3AUzvue6+5VOPWAhxwcbIlwdn+Pp3BTcTLp39zFcjPvGGvy8YzfQtPA+POzcMaCyypm78qsXKaG2086d/Sf++hjDskqwkhcIHCWjvwJFmLCuuiTOSUU5MVyxl+8BmQY2yUmhmXGr/53BiYUOSjm6hWzPOguRlFdf3gCltOqeMOiD/kcvAOp/wWyGDxdoQlDsAV3/M6pfTW5yPh3nv7aI6jV/g=;31:umOxAaVmMoWoE/U+yN5A2D3EBNkvpqrewAEtjDCEqx1JPKgIfD0GR95hyiLGkb7FFws0eUcmWQaWzFoSidU4Pxt7Zso26RrZtzJlb5Nm6860StG3TxcJId F63ix0N1bYpVm0YP/+3KqBD/UktiYqtUBMKEzc2aIVDlDEt3jfEYXPYR/ATvTx9z5YtX7RHpPYWsCQ1RaRQF5i1iu3TkpA7CZCkcePs1UA6kMTQLQk9bE= X-MS-Exchange-Organization-OriginalSize: 3859 X-MS-TrafficTypeDiagnostic: HK2PR0301MB1123: X-MS-Exchange-Organization-HygienePolicy: Premium X-MS-Exchange-Organization-IsPotentialIntraOrgMail: False X-MS-Exchange-Organization-Antispam-PreContentFilter-PolicyLoadTime: MAOSUB:0;SLOSUB:0;SAORES:0;SLORES:0; X-MS-Exchange-Organization-MessageFingerprint: 181EC6C5.2F2BEE49.23F55FFB.5CCDDF38.20202 X-MS-Exchange-Organization-Antispam-PreContentFilter-ScanContext: CategorizerOnSubmitted;CategorizerOnResolved; X-MS-Exchange-Organization-AVScannedByV2: Symantec;Command;Microsoft X-MS-Exchange-Organization-AVScanComplete: true X-MS-Exchange-Organization-Recipient-Limit-Verified: True X-MS-Exchange-Organization-TotalRecipientCount: 1 X-MS-Exchange-Organization-Feature-String: 1007:Latn;1004:181EC6C5.2F2BEE49.23F55FFB.5CCDDF38.20205; X-MS-Exchange-Organization-Feature-Long: 245:1;220:1;244:3;221:1;202:1113;247:1;243:1;246:1;240:1; X-MS-Exchange-Organization-CrossAgent-Data: IMGLNKS:0; X-MS-Exchange-Organization-Cross-Session-Cache: 00EIPC2=1607,1609,30002,1803,1608,30001,30016,30031,796;MIPC2=;SAUTHOP=1;SL=1;EMSL=1;SCL=0;BL=0;RL=1;PID=0;PL=0;EXPID=;PReRC=1;NoDLx=1 X-MS-Exchange-Organization-Rules-Execution-History: d861202f-8fd3-4d27-abc0-a3e628d4e419%%%ebb2648e-7184-4036-845e-60b16ee2bdc5%%%3bc22139-211f-4a79-976e-3349b6f592cb%%%606b26ca-ce4a-419f-99b6-32180de4ec51%%%5d997552-0302-4235-88be-70ba7ae6405e --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. =2D----------------------------------------------------------------------- org-clock-in in org-clock.el calculates org-clock-total-time via calling (org-clock-sum-current-item (org-clock-get-sum-start)). However, org-clock-get-sum-start returns the time in UTC, which is not considered by org-clock-sum-current-time. My time zone if UTC+8 and org-clock-mode-line-total is 'today. Hence org-clock-total-time is gives total time starting from 8am today (which is midnight in UTC) instead of midnight in UTC+8. Emacs : GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, X toolkit) of 2017-12-06 Package: Org mode version 9.1.4 (9.1.4-13-g84cb63-elpa @ /home/yantar92/.em= acs.d/elpa/org-20171218/) =2D-=20 Ihor Radchenko, PhD Student Singapore University of Technology and Design, 8 Somapah Road Singapore 487372 Email: yantar92@gmail.com, ihor_radchenko@mymail.sutd.edu.sg Tel: +6584017977 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEERZAHPFbUe3JemmzmZHB2Kn2hHYsFAlo8ZicACgkQZHB2Kn2h HYvj2Qf/XOaNHcTDcXxJoOO7FAeag43CAYvbCWjZnqODDGmeYnlN9ZyJeltlkRLS WC75eeC+dLZIa3oyWqlb6XtrDDG+K51IWChyKgJW/cq5QoggxRxq6wgaiO8uu/t9 ZaH4A7UkTjc+TGI6tqHMF0vfBbETlS/Rp69v2+Md2CQOktRdqI630mxXQamvL02E IQojbyP8VLbMST3poS6m8eFyayDmEPQTJVsK53mGYMjE1U1z+qO02LJrF+zUUHFk 1+6ylQqK7OrdYRJhedNCPJ91WSYVfj/ykwZmF1QokJCnN1ynh2upRaXDWclm0ORH ep0oyFrSp3OBkwfh41VvnoOZlqrr6Q== =QCVI -----END PGP SIGNATURE----- --=-=-=-- --_c68bbd23-83ad-4b7f-8d98-5dbf7d678631_--