twinssbc / Ionic-Calendar

A calendar directive for Ionic framework
http://twinssbc.github.io/Ionic-Calendar/demo
MIT License
159 stars 73 forks source link

Date format #185

Open ancooor opened 5 years ago

ancooor commented 5 years ago

Hi and thanks for your awesome work! Please, could you give me an help.

I receive dates from a service that returns: eventstart: 2019-03-19T09:00:00.0000000 eventend: 2019-03-19T11:00:00.0000000

into the browser it works properly. If I use it on the iPhone emulator, the calendar display 1 hours before.

I want that all my dates will appear into the calendar as they are passed from the service (i.e. 9:00-11:00), without consider the timezone of the users.

Do you have suggestions?

Thank you

twinssbc commented 5 years ago

@ancooor The calendar is using local timezone. Actually I suggest you take timezone into account, although you think the service returns 9:00-11:00, the calendar also should display this way. But if your app is used by global users, that's not the case. If you book an event with another user in other country, they certainly have the event displayed at different time.