Differentiate between Tokyo and Seoul Time zone

0 votes
both have the same Offset and not DST offset.

I am using java script to calculate the offsets. Also looked at parsing the string to get the name of time zone and it doesnt work so how do you differentiate between the two
Feb 10, 2022 in Others by Kichu
• 19,050 points
146 views

1 answer to this question.

0 votes
if DST and Offset are the only info  and they are the same in both circumstances then you  wont be able to differentiate them You should not rely on Date's toString() or toTimeString(), they are specified to be implementation-dependent.
or you should try to  determine the user's geolocation (based on IP address) or provide the user with a list of regions / areas in his or her time zone to choose from
answered Feb 11, 2022 by narikkadan
• 53,520 points

Related Questions In Others

+1 vote
1 answer
0 votes
0 answers
0 votes
1 answer

What is the difference between hadoop and google analytics ?

I will try and answer this as ...READ MORE

answered Aug 22, 2018 in Others by Frankie
• 9,830 points
925 views
0 votes
0 answers

Mention the difference between Data Driven Testing and Retesting?

Retesting:  It is a process of checking ...READ MORE

Feb 1, 2019 in Others by riya

closed Feb 1, 2019 by Omkar 1,885 views
0 votes
1 answer
0 votes
1 answer
0 votes
0 answers

How to get the Australian Time Zone using Javascript?

I am trying to help a friend ...READ MORE

Jul 19, 2022 in Web Development by gaurav
• 22,940 points
325 views
0 votes
1 answer

Convert GMT to IST (India Standard Time) using javascript?

You can specify an IANA time zone ...READ MORE

answered Nov 7, 2022 in Java by Damonlang
• 700 points
3,570 views
0 votes
1 answer

Average TIME Calculation differs between Excel and PowerBI

They are calculating different things. In Power ...READ MORE

answered Sep 21, 2022 in Others by narikkadan
• 53,520 points
727 views
0 votes
1 answer

Calculate time difference in hours between two dates and times

Simply subtract the two dates to get ...READ MORE

answered Nov 4, 2022 in Others by narikkadan
• 53,520 points
394 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP