- Home
- Forum
- Angular - EJ 2
- Time Problem
Time Problem
This view starts 12:00 AM, I want to start 8:00 AM



and When I send data, it will show 3 hour's before
<div id="scheduler" class="page-layout simple fullwidth">
<!-- HEADER -->
<div class="header accent p-24" fxLayout="row" fxLayoutAlign="start center">
<h2>Scheduler</h2>
</div>
<!-- / HEADER -->
<!-- CONTENT -->
<div class="content p-24">
<ejs-schedule
[selectedDate]="selectedDate" timezone="UTC-03:00" [eventSettings]="eventSettings" [views]="scheduleViews"> </ejs-schedule>
</div>
<!-- / CONTENT -->
</div>
-----------------------------------------------------------------------------------------------------------------------------------------
import { Component, ViewChild } from '@angular/core';
import { EventSettingsModel, DayService, WeekService, WorkWeekService, MonthService, View } from '@syncfusion/ej2-angular-schedule';
import { DataManager, UrlAdaptor } from '@syncfusion/ej2-data';
@Component({
selector: 'app-scheduler',
providers: [DayService, WeekService, WorkWeekService, MonthService],
templateUrl: './scheduler.component.html',
styleUrls: ['./scheduler.component.scss']
})
export class SchedulerComponent {
public selectedDate: Date = new Date();
public scheduleViews: View[] = ['Day', 'Week', 'WorkWeek', 'Month', 'Agenda'];
private eventData: DataManager = new DataManager({
url: 'http://localhost/rova/api/Schedules/LoadData',
crudUrl : 'http://localhost/rova/api/Schedules/UpdateData',
adaptor: new UrlAdaptor(),
crossDomain: true
});
public eventSettings: EventSettingsModel = {
dataSource: this.eventData
};
}
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
VM
Vengatesh Maniraj
Syncfusion Team
July 8, 2020 06:46 AM UTC
Hi Muhammed,
Greetings from Syncfusion Support.
We checked the reported issue “Timezone related issue” at our end but unfortunately, we could not replicate this issue. For your reference, we have shared the runnable sample that can be available in the below link.
And, for more reference, please visit our UG documentation link.
Please check the above and if you still face the issue kindly reproduce the issue in the above sample to serve you better.
Regards,
Vengatesh
MF
Muhammed Fatih Koca
July 8, 2020 10:54 AM UTC
Hi Vengatesh Maniraj


Let me information about my environment and you will get more clarification and easily understand.
Firstly I am in Istanbul/Turkey Here is Timezone (UTC+03:00) Istanbul
and default time start at 9 o'clock but my scheduler starts at 12 o'clock. there are a difference of 3 hours
My backend Asp.net core and working great, problem Angular send data 3 hours before and saved database
Angular Load data work correctly because data saved as 3 hours ago, and shows the correct time
Schedule behave our timezone view start's 12. is there any configuration set schedule localization time
if not I will handle this problem backend side
Thank you very much
BS
Balasubramanian Sattanathan
Syncfusion Team
July 9, 2020 06:37 PM UTC
Hi Muhammed Fatih Koca,
Thanks for the update.
We have validated your reported scenario “Timezone related issue” at our side and checked by preparing the sample. Since the appointment saved in UI properly. And we suspect that, in your project the system timezone has applied. Because, the timezone conversion is properly working at our source level.
Here is a video of the sample that works as expected.
Kindly try and refer the above solution and let us know if you need further assistance.
Regards,
Balasubramanian S
Marked as answer
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
- Marked answer
-
MF Muhammed Fatih Koca
- Jul 7, 2020 06:57 PM UTC
- Jul 9, 2020 06:37 PM UTC