Dealing with Timezones in Quasar - How?
-
Hello,
I would like to use the calendar and the hour component but I am having issues because my users will come from different areas in the world. How can I have these components showing the right date/time per location? Is there anything built into Quasar for this please?
Thank you.
-
look into the date utils
https://quasar.dev/quasar-utils/date-utils -
Thank you, yes I saw this. But the problem is that this code is per case use. I meant some kind of plugin in Quasar that let the user choose country A and have the time getting associated with it. Because at the moment, with the logic on this page, I will still need to create a db with the countries and timezone(a lot of work)…
-
yes, a lot of work. I don’t know if anything has been done like that. There is a Vue one, but it wraps the jQuery one. (vie time zone picker, or somehting like that)
-
Are you saying you use the QCalendar App Extension?
-
Yes a lot of work, I will have to add my translations one by one and work out the time per country each time, ouch…
I will be using the Qdate and Qtime components
https://quasar.dev/vue-components/date