From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Colin Baxter Newsgroups: gmane.emacs.devel Subject: Re: timeclock gives incorrect time in mode-line Date: Thu, 26 Aug 2021 09:10:27 +0100 Message-ID: <875yvsaaoc.fsf@yandex.com> References: <87a6l48xaj.fsf@yandex.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11334"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 26 10:11:24 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJATq-0002iu-Nj for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Aug 2021 10:11:22 +0200 Original-Received: from localhost ([::1]:45134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJATp-0003aT-CQ for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Aug 2021 04:11:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJATH-0002ue-1J for emacs-devel@gnu.org; Thu, 26 Aug 2021 04:10:47 -0400 Original-Received: from forward102o.mail.yandex.net ([2a02:6b8:0:1a2d::602]:55060) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJATE-0003as-9X for emacs-devel@gnu.org; Thu, 26 Aug 2021 04:10:46 -0400 Original-Received: from forward101q.mail.yandex.net (forward101q.mail.yandex.net [IPv6:2a02:6b8:c0e:4b:0:640:4012:bb98]) by forward102o.mail.yandex.net (Yandex) with ESMTP id 7564D6FFB4CD for ; Thu, 26 Aug 2021 11:10:29 +0300 (MSK) Original-Received: from vla5-d4be149c9aa7.qloud-c.yandex.net (vla5-d4be149c9aa7.qloud-c.yandex.net [IPv6:2a02:6b8:c18:3485:0:640:d4be:149c]) by forward101q.mail.yandex.net (Yandex) with ESMTP id 73287CF4000F for ; Thu, 26 Aug 2021 11:10:29 +0300 (MSK) Original-Received: from vla1-ef285479e348.qloud-c.yandex.net (vla1-ef285479e348.qloud-c.yandex.net [2a02:6b8:c0d:35a1:0:640:ef28:5479]) by vla5-d4be149c9aa7.qloud-c.yandex.net (mxback/Yandex) with ESMTP id RgOQZwO37I-ATI8ojfa; Thu, 26 Aug 2021 11:10:29 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1629965429; bh=E9yf4qHjMZqsfxP5Jxw4j+qooMMz8Yv0tKTVTrLxqhI=; h=In-Reply-To:Subject:Date:References:To:From:Message-ID:Cc; b=tJdTQspkarENJNUIlUmVWm0YciKKAvLkZBJxLpsDrrdq6bPMeqc0eBoDl7+uhsMd5 WhGUSe6M2WQqMEE/v/JyDuH2fSx0TbX2CIQuPqJn2TbfQ+bD2QDDCoDljcAKUZxCMY 1XkdJ7LkilkuUJjEmuTbwdX6cM70J8uqQyOZQr6g= Authentication-Results: vla5-d4be149c9aa7.qloud-c.yandex.net; dkim=pass header.i=@yandex.com Original-Received: by vla1-ef285479e348.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id q0bfRGtc44-ASMCqrmL; Thu, 26 Aug 2021 11:10:28 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T In-Reply-To: <87a6l48xaj.fsf@yandex.com> (Colin Baxter's message of "Thu, 26 Aug 2021 08:44:52 +0100") Face: iVBORw0KGgoAAAANSUhEUgAAAEkAAAATAgMAAAChCMjeAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEX/zAABCWP///8I RHjYAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+UFEAk5BvqS634A AAAbSURBVBjTY2BgCA1hYA0FAxDDgQEERsXoIAYA2F9Eb3cpB+AAAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjEtMDUtMTZUMTA6NTY6MTcrMDE6MDCh/kkpAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA1 LTE2VDA5OjU3OjA2KzAxOjAwTyZ6HwAAAABJRU5ErkJggg== Received-SPF: pass client-ip=2a02:6b8:0:1a2d::602; envelope-from=m43cap@yandex.com; helo=forward102o.mail.yandex.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:273013 Archived-At: >>>>> Colin Baxter writes: > Hello, I have my timeclock workday set to 12 hours by means of > (setq timeclock-workday (* 12 60 60)) > This works fine in emacs-27.2 and correctly displays the remaining > time in the mode-line. > This appears not to be the case for emacs-28.0.50, which insists > on assuming the workday to be the default 8 hours when displaying > the remaining time in the mode-line. > The differences between the timeclock.el files for 27.2 and > 28.0.50 seem pretty minimal and I don't see why the latter should > ignore my setting for timeclock-workday. I have checked the > variable via C-h v timeclock-workday in emacs-28.0.50 and it > does indeed give the value I set, namely 43200 (with the original > value as 28800). The issue seems to be with the setting (timeclock-mode-line-display 1) in my ~/.emacs. If I comment out that setting and allow emacs-28.0.50 to display the remaining time by doing M-x timeclock-mode-line-display then the remaining time is displayed correctly.