Only UTC timestamp in mu / mu4e - not system time?

243 views
Skip to first unread message

Herschel Krustofsky

unread,
Sep 25, 2013, 6:55:28 PM9/25/13
to mu-di...@googlegroups.com
Hi,

I'm running mu/mu4e compiled from Git. on Mac OS X 10.8.4. I'm using Emacs 24.3 (downloaded binary) and Emacs compiled from Head via homebrew. I'm using mbsync to synchronize multiple accounts from Gmail.

I'm honestly not sure when it happened, but all mail is now shown with a UTC timestamp, not adjusted to my local timezone (currently -4). Has anyone else seen this behavior? 

From IELM - Emacs has the correct timestamp from the system:

ELISP> (format-time-string "%a, %d %b %Y %T %z" nil)
"Wed, 25 Sep 2013 18:49:37 -0400"

Thanks in advance!

Herschel

Jacek Generowicz

unread,
Sep 26, 2013, 2:08:25 AM9/26/13
to Mu Discuss

krust...@gmail.com writes:

> all mail is now shown with a UTC timestamp, not adjusted to my local
> timezone (currently -4). Has anyone else seen this behavior?

I have.

(Investigating it hasn't managed to break through to the front page of
my priority list, though. Sorry.)

Dirk-Jan C. Binnema

unread,
Sep 26, 2013, 2:30:05 AM9/26/13
to mu-di...@googlegroups.com
Does the same happen for (format-time-string mu4e-headers-date-format
nil)? If so, what's in your mu4e-headers-date-format? And does the same
thing happen e.g. in the *scratch* buffer?

Cheers,
Dirk.



--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C

Herschel Krustofsky

unread,
Sep 27, 2013, 6:17:48 PM9/27/13
to mu-di...@googlegroups.com
Hi Dirk,

Thanks for the reply. Both return:

""09/27/13"

Thanks,

Herschel

On Wednesday, September 25, 2013 11:30:05 PM UTC-7, djcb wrote:

On Wed, Sep 25 2013, krust...@gmail.com wrote:

> Hi,
>
> I'm running mu/mu4e compiled from Git. on Mac OS X 10.8.4. I'm using Emacs
> 24.3 (downloaded binary) and Emacs compiled from Head via homebrew. I'm
> using mbsync to synchronize multiple accounts from Gmail.
>
> I'm honestly not sure when it happened, but all mail is now shown with a
> UTC timestamp, not adjusted to my local timezone (currently -4). Has anyone
> else seen this behavior?
>
>>From IELM - Emacs has the correct timestamp from the system:
>
> ELISP> (format-time-string "%a, %d %b %Y %T %z" nil)
> "Wed, 25 Sep 2013 18:49:37 -0400"

Does the same happen for (format-time-string mu4e-headers-date-format
nil)? If so, what's in your mu4e-headers-date-format? And does the same
thing happen e.g. in the *scratch* buffer?

Cheers,
Dirk.



--
Dirk-Jan C. Binnema                  Helsinki, Finland

Tamas Papp

unread,
Oct 2, 2013, 4:37:13 AM10/2/13
to mu-di...@googlegroups.com
I get the same behavior.  In *scratch*,

(format-time-string mu4e-headers-time-format)

displays the local time, but the mu4e headers are UTC.  I am using the following settings:

      mu4e-use-fancy-chars t
      mu4e-headers-fields '((:human-date    .  8)
                            (:flags         .   4)
                            (:from-or-to    .  22)
                            (:subject       .  nil))
      mu4e-headers-time-format "%k.%M"
      mu4e-headers-date-format "%y_%m_%d"

Best,

Tamas

Dirk-Jan C. Binnema

unread,
Oct 6, 2013, 11:57:37 AM10/6/13
to mu-di...@googlegroups.com

On Wed, Oct 02 2013, tkp...@gmail.com wrote:

> I get the same behavior. In *scratch*,
>
> (format-time-string mu4e-headers-time-format)
>
> displays the local time, but the mu4e headers are UTC. I am using the
> following settings:
>
> mu4e-use-fancy-chars t
> mu4e-headers-fields '((:human-date . 8)
> (:flags . 4)
> (:from-or-to . 22)
> (:subject . nil))
> mu4e-headers-time-format "%k.%M"
> mu4e-headers-date-format "%y_%m_%d"

Has this changed recently? If so, roughly since when? Did you upgrade
another part of the system (e.g, your distro)? Does a command-line
mu-find give the expected results?

Cheers,
Dirk.

--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:www.djcbsoftware.nl

Tamas Papp

unread,
Oct 6, 2013, 12:40:25 PM10/6/13
to mu-di...@googlegroups.com
On Sun, Oct 06 2013, dj...@djcbsoftware.nl wrote:

> On Wed, Oct 02 2013, tkp...@gmail.com wrote:
>
>> I get the same behavior. In *scratch*,
>>
>> (format-time-string mu4e-headers-time-format)
>>
>> displays the local time, but the mu4e headers are UTC. I am using the
>> following settings:
>>
>> mu4e-use-fancy-chars t
>> mu4e-headers-fields '((:human-date . 8)
>> (:flags . 4)
>> (:from-or-to . 22)
>> (:subject . nil))
>> mu4e-headers-time-format "%k.%M"
>> mu4e-headers-date-format "%y_%m_%d"
>
> Has this changed recently? If so, roughly since when? Did you upgrade
> another part of the system (e.g, your distro)? Does a command-line
> mu-find give the expected results?

I think it has been like this for quite a while, maybe ever since I have
been using mu4e, but I am not sure.

Command line gives the same (incorrect) date, eg for your most recent
e-mail

--8<---------------cut here---------------start------------->8---
tamas@tamas:~$ mu find from:dirk utc timestamp system
Sun 06 Oct 2013 03:57:37 PM CEST "Dirk-Jan C. Binnema" <dj...@djcbsoftware.nl> Re: Only UTC timestamp in mu / mu4e - not system time?
--8<---------------cut here---------------end--------------->8---

In your message,

--8<---------------cut here---------------start------------->8---
Date: Sun, 06 Oct 2013 18:57:37 +0300
--8<---------------cut here---------------end--------------->8---

Best,

Tamas

Dirk-Jan C. Binnema

unread,
Oct 6, 2013, 5:54:23 PM10/6/13
to mu-di...@googlegroups.com

On Wed, Oct 02 2013, tkp...@gmail.com wrote:

> I get the same behavior. In *scratch*,
>
> (format-time-string mu4e-headers-time-format)
>
> displays the local time, but the mu4e headers are UTC. I am using the
> following settings:
>
> mu4e-use-fancy-chars t
> mu4e-headers-fields '((:human-date . 8)
> (:flags . 4)
> (:from-or-to . 22)
> (:subject . nil))
> mu4e-headers-time-format "%k.%M"
> mu4e-headers-date-format "%y_%m_%d"


Hmmm... I've pushed some changes, can you give it a try?

Cheers,
Dirk.

--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:www.djcbsoftware.nl

Krusty

unread,
Oct 6, 2013, 6:48:11 PM10/6/13
to mu-di...@googlegroups.com
You fixed it! (at least for me...)

Thanks, Dirk !!


--
You received this message because you are subscribed to the Google Groups "mu-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mu-discuss+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Tamas Papp

unread,
Oct 7, 2013, 1:08:05 AM10/7/13
to mu-di...@googlegroups.com
On Sun, Oct 06 2013, dj...@djcbsoftware.nl wrote:

> On Wed, Oct 02 2013, tkp...@gmail.com wrote:
>
>> I get the same behavior. In *scratch*,
>>
>> (format-time-string mu4e-headers-time-format)
>>
>> displays the local time, but the mu4e headers are UTC. I am using the
>> following settings:
>>
>> mu4e-use-fancy-chars t
>> mu4e-headers-fields '((:human-date . 8)
>> (:flags . 4)
>> (:from-or-to . 22)
>> (:subject . nil))
>> mu4e-headers-time-format "%k.%M"
>> mu4e-headers-date-format "%y_%m_%d"
>
>
> Hmmm... I've pushed some changes, can you give it a try?

Hi Dirk,

This seems to have fixed it for me. Thanks!

Best,

Tamas

Sebastian Hubbard

unread,
Oct 8, 2013, 10:48:11 AM10/8/13
to mu-di...@googlegroups.com
Lucky me, the fix is ready just when I finally gave in and went to figure out why my timestamps were broken...

(Thank you for the email client!)

Eagleeye777

unread,
Oct 17, 2013, 4:26:47 AM10/17/13
to mu-di...@googlegroups.com
I do have the same issue.
What do I have to do to apply the changes?

Dirk-Jan C. Binnema

unread,
Oct 18, 2013, 4:36:14 PM10/18/13
to mu-di...@googlegroups.com

On Thu, Oct 17 2013, schaum...@gmail.com wrote:

> I do have the same issue.
> What do I have to do to apply the changes?

Get the latest version from git, and recompile. Or wait a few weeks for
the next release.
Reply all
Reply to author
Forward
0 new messages