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: timeclock gives incorrect time in mode-line Date: Thu, 26 Aug 2021 08:44:52 +0100 Message-ID: <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="16002"; 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 09:47:23 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 1mJA6d-0003qi-Hm for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Aug 2021 09:47:23 +0200 Original-Received: from localhost ([::1]:53472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJA6b-0005k2-EH for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Aug 2021 03:47:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJA57-00047X-0x for emacs-devel@gnu.org; Thu, 26 Aug 2021 03:45:50 -0400 Original-Received: from forward102o.mail.yandex.net ([37.140.190.182]:48140) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJA54-0001Hr-Ka for emacs-devel@gnu.org; Thu, 26 Aug 2021 03:45:48 -0400 Original-Received: from forward100q.mail.yandex.net (forward100q.mail.yandex.net [IPv6:2a02:6b8:c0e:4b:0:640:4012:bb97]) by forward102o.mail.yandex.net (Yandex) with ESMTP id 07F056FFB640 for ; Thu, 26 Aug 2021 10:44:55 +0300 (MSK) Original-Received: from vla1-d30fdea44965.qloud-c.yandex.net (vla1-d30fdea44965.qloud-c.yandex.net [IPv6:2a02:6b8:c0d:131b:0:640:d30f:dea4]) by forward100q.mail.yandex.net (Yandex) with ESMTP id 05F127080009 for ; Thu, 26 Aug 2021 10:44:55 +0300 (MSK) Original-Received: from vla5-8422ddc3185d.qloud-c.yandex.net (vla5-8422ddc3185d.qloud-c.yandex.net [2a02:6b8:c18:3495:0:640:8422:ddc3]) by vla1-d30fdea44965.qloud-c.yandex.net (mxback/Yandex) with ESMTP id HGEnLV4zro-isI4a66p; Thu, 26 Aug 2021 10:44:55 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1629963895; bh=j4hCjmZC/3GTt2i+W4qgXx1Fo5n7H25ihzI0kU27GSM=; h=Date:Subject:To:From:Message-ID:Cc; b=aTnz2gRa6/+4La10j+7jz5ST0hrpygeFIlEiltal3ju719Tk3acyefUcByPXEbUF3 mDhBOGZgyQz2CFrvWkkJXfqd+TKQzTQtLQpexNjFIUwi8J7LzGOqzBdEX6eX3ypo56 OGF4VChaXkbThhITrhIGAJl8R0Aox6q/HFINb04Q= Authentication-Results: vla1-d30fdea44965.qloud-c.yandex.net; dkim=pass header.i=@yandex.com Original-Received: by vla5-8422ddc3185d.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id Upfn3TUDWt-isFGJi0i; Thu, 26 Aug 2021 10:44:54 +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 Face: iVBORw0KGgoAAAANSUhEUgAAAEkAAAATAgMAAAChCMjeAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEX/zAABCWP///8I RHjYAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+UFEAk5BvqS634A AAAbSURBVBjTY2BgCA1hYA0FAxDDgQEERsXoIAYA2F9Eb3cpB+AAAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjEtMDUtMTZUMTA6NTY6MTcrMDE6MDCh/kkpAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA1 LTE2VDA5OjU3OjA2KzAxOjAwTyZ6HwAAAABJRU5ErkJggg== Received-SPF: pass client-ip=37.140.190.182; 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, RCVD_IN_MSPIKE_H2=-0.001, 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:273009 Archived-At: 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). I'd be grateful for suggestions as to what to look for in locating the problem. Best wishes, Colin Baxter.