We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Time cell is not displaying the correct time


I have an Angular 8 project with Schedule control and I am using time slot of 90 minutes:

public timeScale: TimeScaleModel = { enable: true, interval: 90, slotCount: 1 };

The time slots are displayed OK on the laptop but not on the mobile phone ( the time is displayed as 1 PM instead of 1:30 PM ). I attached pictures with the desktop and mobile views.

Please help me to show the correct time.



Attachment: Pictures_c1b876f8.zip

2 Replies

BS Balasubramanian Sattanathan Syncfusion Team February 5, 2020 10:33 AM UTC

Hi Mircea, 
Greetings from Syncfusion Support. 
We have checked your reported problem at our end. By default, mobile mode Scheduler timescale will be differ from Desktop mode. We can change it by using majorSlotTemplate and minorSlotTemplate property like below code. Kindly refer and use the below timescale. It will be same as the mobile and desktop mode. Kindly try the below code snippet in our previously updated project and let us know if you need any further assistance on this. 
<ng-template #timeScaleMajorSlotTemplate let-data> 
  <div class="majorTime">{{getMajorTime(data.date)}}</div> 
<ng-template #timeScaleMinorSlotTemplate let-data> 
  <div class="minorTime">{{getMinorTime(data.date)}}</div> 
public timeScaleTimeScaleModel = { 
  enable: true, 
  interval: 90, 
  slotCount: 1, 
  majorSlotTemplate: '#majorSlotTemplate', 
  minorSlotTemplate: '#minorSlotTemplate' 
public instanceInternationalization = new Internationalization(); 
getMajorTime(dateDate): string { 
  return this.instance.formatDate(date, { skeleton: 'hm' }); 
getMinorTime(dateDate): string { 
  return this.instance.formatDate(date, { skeleton: 'ms' }).replace(':00'''); 
Balasubramanian S 

MI Mircea February 5, 2020 11:23 AM UTC

Hi Balasubramanian,

Yes, it is working now.
Thank you very much.



Live Chat Icon For mobile
Up arrow icon