MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    default calendar - change date format for today/tomorrow events

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    1 Posts 1 Posters 805 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • spitzlbergerjS Offline
      spitzlbergerj Project Sponsor Module Developer
      last edited by

      Hi
      beforehand - I am a python beginner. Be nice ;-)

      I want to change the display format of the date. My MagicMirror runs in German.

      Instead of “today at xx.xx clock” or in German “Heute um xx.xx Uhr” only “xx.xx” should be displayed, as with later events in a few days. And instead of “Morgen um xx.xx Uhr” you should also see “xx.xx”.

      In the translations, I first tried to set the translation of “today” and “tomorrow” to “”. Apparently, translation is not used by the calendar module. It was already clear to me that there must be something else because a translation of “at” or “um” did not occur.

      So it’s probably a formatting function in python. But I fail.

      Can someone help me?

      And then another question, since I am also a github freshman. Should / can I make such a new version of Calendar available to all and if so, how do I do that.

      thank you very much

      greetings
      Sepp

      Regards
      Josef

      http://www.spitzlberger.de/smartmirror, https://github.com/spitzlbergerj/MMM-TeslaLogger, https://github.com/spitzlbergerj/CaravanPi, https://www.la-gondola-barocca.de

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Enjoying MagicMirror? Please consider a donation!
      MagicMirror created by Michael Teeuw.
      Forum managed by Sam, technical setup by Karsten.
      This forum is using NodeBB as its core | Contributors
      Contact | Privacy Policy