Closed NayakPenguin closed 1 year ago
So, you mean in the table at https://algolisted.com/coding-competitions , you use the Indian time. But, do you want to display it local time of a particular country? for example, The table should display for an event at 9.00 am on 1/5/2023 in Indian time, as 7.30 p.m. on 1/4/2023 for someone in California and 3.30 a.m. on 1/5/2023 for one in London.
You can convert IST(India time) to UTC, and UTC to the local time of the region.
You can convert IST(India time) to UTC, and UTC to the local time of the region. - exactly this is the task. I am assigning this to you, happy coding :)
ok..thank you. I will work on it.
I want to give an update on thisit. I am still working on it. I have completed some work. As soon as I tested and competed it , I will make a PR
I sent the PR with a description
Yep, reviewed it :) #73
Write now the API which is fetching the data has the content in Indian time. And when it is being called by the user we are comparing it with the local time of that country.
The task is to show the data/time respective to the user's country taking the Indian time as standard (Since API is giving the data in Indian time).
Or you can suggest me, to convert the API timings to International time if it is easier for you to convert.