GNU bug report logs - #49748
27.2; format-time-string returns 30 minutes for the value zero

Previous Next

Package: emacs;

Reported by: Hosein <naghdbishi <at> riseup.net>

Date: Tue, 27 Jul 2021 16:36:02 UTC

Severity: minor

Tags: notabug

Found in version 27.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Hosein <naghdbishi <at> riseup.net>
Cc: 49748 <at> debbugs.gnu.org
Subject: bug#49748: 27.2; format-time-string returns 30 minutes for the value zero
Date: Tue, 27 Jul 2021 18:42:25 +0200
On Jul 27 2021, Hosein wrote:

> Hi, I expected (format-time-string "%M:%S" 0)) to return "00:00" but
> since I live in a GMT+3:30 time zone it returns "30:00".

You already provide the reason.  If you want to operate in the UTC
timezone, say so.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




This bug report was last modified 3 years and 293 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.