@ajay1008
JavaScript Enthusiastic, Eager to learn new JS frameworks. UI developer
Nothing here yet.
Nothing here yet.
No blogs yet.
Hi Atul, Thank you, Earlier also I used the same function but it was showing a difference of 1+ hours or so, the function u gave above, works perfectly fine. How is it ? Can you explain, I refereed the same stackoverflow answer (https://stackoverflow.com/a/8207708/3003720)
Hy Peter, I tried your approach, but one issue is, I have 'timezone', in UTC offset values, but the toLocaleTimeString(locale, options) accepts the timeZone option in "Area/Location" format, I need an option to accept timeZone offset.
Thanks Peter, Yeah I got a stackoverflow link for the same, basically it finds the UTC offset difference from the date, and return sa new date toLocaleString(). check this: https://stackoverflow.com/questions/8207655/how-to-get-time-of-specific-timezone-using-javascript But the issue is, Its giving some 1+ hour of delay in time.