nylas-mail icon indicating copy to clipboard operation
nylas-mail copied to clipboard

Feature Request: Support 24-hour / military time

Open tinybigstudio opened this issue 10 years ago • 19 comments

It would be great to be able to configure the time format from 12:00 to 24:00 hr. So that 11pm is 23:00Hr in Europe. Military time as my wife calls it.... (We are not that military here in Europe tho) :)) And additionally for calendar purposes, to be able to switch the first day of the week from monday to sunday.

tinybigstudio avatar Dec 12 '15 01:12 tinybigstudio

Hey! Great to hear from you @tinybigstudio — we can definitely get this in to a future release. I'm sure you're not the only one looking for 24-hour time!

bengotow avatar Dec 12 '15 01:12 bengotow

Is this going to be fixed soon? thanks :)

tinybigstudio avatar Dec 12 '15 05:12 tinybigstudio

@tinybigstudio Nylas has a Trello board for what they are working on: https://trello.com/b/hxsqB6vx/n1-open-source-roadmap

mbilker avatar Dec 13 '15 02:12 mbilker

I would like tackle this issue. Can someone point in the right directions? Which files (more or less) need editing or what could I grep for? Looking for "time" gave way too many results, as expected :smile:

felipesere avatar Dec 16 '15 10:12 felipesere

Look for Date usage. Like new Data(blah) On Wed, Dec 16, 2015 at 5:02 AM Felipe Seré [email protected] wrote:

I would like tackle this issue. Can someone point in the right directions? Which files (more or less) need editing or what could I grep for? Looking for "time" gave way too many results, as expected [image: :smile:]

— Reply to this email directly or view it on GitHub https://github.com/nylas/N1/issues/682#issuecomment-165054056.

mbilker avatar Dec 16 '15 13:12 mbilker

Is there an easy way to inherit this setting from the OS, instead of adding a new setting?

colllin avatar Dec 16 '15 15:12 colllin

@colllin not really. Electron is aimed at multi-platform support, where the settings interfaces differ. There even can be a lack of a centralized settings store under Linux.

There may be native modules available however that allow access. Electron already has a nslog native module that logs to Console.app under OS X.

mbilker avatar Dec 16 '15 15:12 mbilker

+1

Eldenroot avatar Dec 18 '15 10:12 Eldenroot

Hey folks—I think there are only a handful of places we format message and thread dates:

[For the message view] https://github.com/nylas/N1/blob/unified-inbox/internal_packages/message-list/lib/message-timestamp.cjsx#L26

[For the conversation / drafts view] https://github.com/nylas/N1/blob/unified-inbox/internal_packages/thread-list/lib/formatting-utils.cjsx#L8

What we need to do is add a config schema item to https://github.com/nylas/N1/blob/unified-inbox/src/config-schema.coffee#L56 under the "reading" section. Then it'll be automatically displayed in the app's preferences and you can query for it via NylasEnv.config.get('core.reading.timeFormat').

bengotow avatar Jan 27 '16 08:01 bengotow

+1

agat avatar Jan 29 '16 08:01 agat

@ChrisKatsaras is gonna tackle this one. :+1:

bengotow avatar Jan 29 '16 18:01 bengotow

:+1:

ChrisKatsaras avatar Jan 29 '16 19:01 ChrisKatsaras

Has there been any progress on this @ChrisKatsaras? I could take a look if you don't have time to look into it?

GU5TAF avatar Feb 27 '16 11:02 GU5TAF

Hey guys! Sorry for the delayed response! My team and I were successfully able to implement the 24 clock. I will be making a pull request soon which will hopefully meet the standards!

ChrisKatsaras avatar Feb 27 '16 13:02 ChrisKatsaras

@ChrisKatsaras Did you complete that PR? If so, please submit it!

mbilker avatar Apr 05 '16 16:04 mbilker

@mbilker Unfortunately, due to the fact that N1 had an update shortly after we developed the 24hr clock our code was no longer functional. Our team is no longer able to complete the task at this time so I encourage someone else to take on this task.

ChrisKatsaras avatar Apr 05 '16 17:04 ChrisKatsaras

+1

Also the main reason I'm not using Nylas as my main email client.

rudolphpienaar avatar May 12 '16 12:05 rudolphpienaar

I have just submitted pull request #2622 which should address this. It builds on the previous work done by others. I think it now implements 24 hour time in all places where time is displayed.

jathpala avatar Jul 14 '16 14:07 jathpala

This has landed and will go out in the next release–

bengotow avatar Aug 01 '16 16:08 bengotow