- Home
- Forum
- Angular - EJ 2
- Schedule: Disable Timezone and UTC time offset
Schedule: Disable Timezone and UTC time offset
Hi,
I would like to disable the timezone fields as well as the UTC offset that is applied to the Start and End dates before they are saved to the DataSource. In other words, I would like the date/time values entered in the Editor popup to be the values sent to the DataSource's CRUD Url. Can this be done with the Schedule Control for Angular?
thanks,
Derrick
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
HB
Hareesh Balasubramanian
Syncfusion Team
August 18, 2020 01:52 PM UTC
Hi Derrick,
Greetings from Syncfusion Support..!
We have validated your shared query “I would like to disable the timezone fields as well as the UTC offset that is applied to the Start and End dates before they are saved to the DataSource” at our end. And we suspect that your requirement is to disable the timezone filed in the editor window and if we disabled those fields then the user can’t able to change the time zone for the event while creating/editing it. And for the same, we have prepared a sample using CSS Property and it can be viewed from the following link.
Code snippet:
|
.e-time-zone-container {
display: none;
} |
And for further reference, we may use our own customized editor window too using the editorTemplate Scheduler’s property. And for that, kindly refer the below UG link,
Kindly try the above solution and if we misunderstand your requirement, kindly let us know more details about the use case scenario/video demo/image of your requirements for the better serve.
Regards,
Hareesh
DM
Derrick Morin
August 19, 2020 07:42 PM UTC
thanks. Actually I want timezone disabled, not just hidden with CSS. In your proposed solution the date/time sent back to the server is not the same date/time that the user entered in the editor so your proposed solution isn't really disabling the timezone it is hiding the fields. correct? How do I eliminate timezone from all dates?
thanks
Derrick
HB
Hareesh Balasubramanian
Syncfusion Team
August 20, 2020 03:15 PM UTC
Hi Derrick,
Thanks for the update.
We have validated your shared query “Actually I want timezone disabled, not just hidden with CSS” at our end. And we suspect that your requirement is to remove those (StartTimezone and EndTimezone fields) from both the server and client. And for that, we have prepared a CRUD sample using editorTemplate property and in that we can able to render our own customized fields and the sample can be downloaded from the following link.
And for your reference, we have taken the screenshot of the event collection in the server end,
And for further reference, kindly refer the below UG links,
CRUD actions: https://ej2.syncfusion.com/angular/documentation/schedule/data-binding/#scheduler-crud-actions
Editor Window customization using a template: https://ej2.syncfusion.com/angular/documentation/schedule/editor-template/#customizing-event-editor-using-template
Kindly try the above solution and get back to us if you need any further assistance.
Regards,
Hareesh
Marked as answer
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
- Marked answer
-
DM Derrick Morin
- Aug 17, 2020 07:02 PM UTC
- Aug 20, 2020 03:15 PM UTC