eouia / MMM-CalendarExt

Calendar views for MagicMirror
MIT License
55 stars 18 forks source link

How to change from Military time to Standard time on calendar #25

Closed cshaffer1 closed 5 years ago

cshaffer1 commented 6 years ago

Let me just tell you how pleased I am with your creation! This was just what I was looking for. I have it up and running with 2 linked calendars with different styles and symbols. SO COOL! Only issue is...how can I change the calendar to show Standard Time instead Military. My Clock is standard. It's probably something simple that I'm missing. Thank you for your help:)

eouia commented 6 years ago

@cshaffer1 Sorry for my poor English. What is mean Standard Time and Military Time? You mean 1:23 PM style instead of 13:23? You can modify formats of text with xxx..Format fields. eg)

...
views : {
   ...
   daily : {
   ...
   timeFormat : "h m a",
   ...
...

will change your event time showing in daily view from 13:05 to 1 5 pm. (Well this is not what you want but it is just example) You can get more info from https://github.com/eouia/MMM-CalendarExt/wiki/Configuration and https://momentjs.com/docs/#/displaying/format/

cshaffer1 commented 6 years ago

This is exactly what I was looking for. Thank you so much! Works perfectly:)


From: Seongnoh Sean Yi notifications@github.com Sent: Thursday, March 8, 2018 2:58 AM To: eouia/MMM-CalendarExt Cc: cshaffer1; Mention Subject: Re: [eouia/MMM-CalendarExt] How to change from Military time to Standard time on calendar (#25)

@cshaffer1https://github.com/cshaffer1 Sorry for my poor English. What is mean Standard Time and Military Time? You mean 1:23 PM style instead of 13:23? You can modify formats of text with xxx..Format fields. eg)

... views : { ... daily : { ... timeFormat : "h m a", ... ...

will change your event time showing in daily view from 13:05 to 1 5 am. (Well this is not what you want but it is just example) You can get more info from https://github.com/eouia/MMM-CalendarExt/wiki/Configuration and https://momentjs.com/docs/#/displaying/format/

Moment.js | Docshttps://momentjs.com/docs/#/displaying/format/ momentjs.com Moment was designed to work both in the browser and in Node.js. All code should work in both of these environments, and all unit tests are run in both of these ...

[https://avatars0.githubusercontent.com/u/1720610?s=400&v=4]https://github.com/eouia/MMM-CalendarExt/wiki/Configuration

Configuration · eouia/MMM-CalendarExt Wiki · GitHubhttps://github.com/eouia/MMM-CalendarExt/wiki/Configuration github.com name type description; show: Array of String: Which view to show. daily, weekly, monthly, month, weeks, upcoming, current are available. You can use all or some of ...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/eouia/MMM-CalendarExt/issues/25#issuecomment-371409416, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ah5VJvumnfUe0fCUXH2CfrAiI808zZQmks5tcOScgaJpZM4ShQDE.