• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
  1. Home
  2. cokelid
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
C
Offline
  • Profile
  • Following 0
  • Followers 0
  • Topics 1
  • Posts 3
  • Groups 0

cokelid

@cokelid

0
Reputation
3
Profile views
3
Posts
0
Followers
0
Following
Joined Oct 3, 2020, 12:21 PM
Last Online Oct 4, 2020, 9:22 AM

cokelid Unfollow Follow

Latest posts made by cokelid

  • RE: Calendar: Change format of relative times/dates

    Thanks @sdetweil!
    So it’s the call to moment.calendar() as you suggested. I changed calendar.js (line 339) to pass in a customised format:

    calFormat = {
    	sameDay: 'LT',
    	nextDay: 'ddd[,] LT',
    	nextWeek: 'ddd[,] LT',
    	lastDay: '[Yesterday]',
    	lastWeek: '[Last] ddd',
    	sameElse: 'DD/MM/YYYY'
    };
    timeWrapper.innerHTML = this.capFirst(moment(event.startDate, "x").calendar(null, calFormat));			
    

    Presumably I could easily pull that format in from this.config?

    posted in Troubleshooting
    C
    cokelid
    Oct 3, 2020, 5:33 PM
  • RE: Calendar: Change format of relative times/dates

    @sdetweil said in Calendar: Change format of relative times/dates:

    dateFormat: “MMM Do”,
    dateEndFormat: “LT”,
    fullDayEventDateFormat: “MMM Do”,

    Thanks @sdetweil, I appreciate the speedy response! I have given that a go but they don’t affect the “Monday at 07:00” at all?

    posted in Troubleshooting
    C
    cokelid
    Oct 3, 2020, 1:47 PM
  • Calendar: Change format of relative times/dates

    I’d like to change the relative time format for Calendar entries from (e.g.) “Monday at 07:00” to “Mon 07:00” or similar. I’m using the standard “calendar” module.
    I’m using a small screen (Raspberry Pi touch screen) with MagicMirror and so have very limited screen real estate. As shown below, the “Monday at 07:00” takes up a good chunk of space, so I’d like to make the column as compact as possible…
    I’ve fiddled with various config entries but can find nothing that controls the “Monday at” part of the text.
    Any ideas?

    20089a38-aa0e-4055-9867-4ac0e9ffc3d1-image.png

    posted in Troubleshooting calendar
    C
    cokelid
    Oct 3, 2020, 12:34 PM
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