Our powerful JS Calendar component


Post by nayiaw »

The events are displayed in 12h format but the time axis shows 24h format. How can we configure to show the time in the time axis as 12h?

The attachment below shows the event shows in 12h format but the timeline shows 24h format.

Screenshot 2020-09-01 at 6.01.22 PM.png
Screenshot 2020-09-01 at 6.01.22 PM.png (9.59 KiB) Viewed 943 times

Post by pmiklashevich »

It's not supported at the moment. I've opened a feature request https://github.com/bryntum/support/issues/1434
Meanwhile you can you this workaround:

    modes : {
        week   : {
            // PRIVATE
            hourFormat : 'LT',
            minuteFormat : ''
        }
    },

And adjust some styles

	<style>
		.b-dayview-timeaxis-hours::after {
			content : none;
		}
	</style>

Please note, the configs are private, so please clean up the workaround as soon as the ticket is fixed.

Best,
Pavel

Pavlo Miklashevych
Sr. Frontend Developer


Post Reply