Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change mail contrib date/times to display in local time based on style timezone setting #3504

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chiizujin
Copy link
Contributor

@chiizujin chiizujin commented Apr 12, 2024

Brief overview of PR changes/additions

The mail (contrib) command currently shows mail date/times in UTC. This changes the date/times to the local time zone based on the setting in style.

Motivation for adding to Evennia

Show local time for mail.

Other info

UTC:

>mail
------------------------------------------------------------------------------
 ID    From              Subject                           Arrived            
------------------------------------------------------------------------------
 1     Jazri             Test                              14:33:34     -     
------------------------------------------------------------------------------
>mail/read 1
------------------------------------------------------------------------------
From: Jazri
Sent: Apr 12, 2024 - 14:33:34
Subject: Test
------------------------------------------------------------------------------
Test.
------------------------------------------------------------------------------

Local time:

>mail
------------------------------------------------------------------------------
 ID    From              Subject                           Arrived            
------------------------------------------------------------------------------
 1     Jazri             Test                              00:33:34     -     
------------------------------------------------------------------------------
>mail/read 1
------------------------------------------------------------------------------
From: Jazri
Sent: Apr 12, 2024 - 00:33:34
Subject: Test
------------------------------------------------------------------------------
Test.
------------------------------------------------------------------------------

Copy link
Member

@Griatch Griatch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is affected by the same issue as the page datetime PR - the server is not always using UTC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants