Thanks for the suggestions.

Yes during specific set of months, EST is considered as EDT due to daylight 
saving.
During EDT the difference is 4 hours and during EST the difference is 5 
hours.

Using America/New_York instead of EST, gives the expected result as 4 hours.

I would like to give input as EST and map to America/New_York for 
LoadLocation, and get the output. Similarly for other timezones which has 
Daylight Savings.
This solves the issue I was trying, but like to know if there is any side 
effects due to this. 
 Correct me if am wrong.

On Thursday, 29 September 2016 20:48:03 UTC+5:30, laxman.v...@gmail.com 
wrote:
>
> Hi,
>
> Google shows difference between EST and UTC as 4 hours whereas go logic 
> gives 5 hours difference in time. 
>
> https://play.golang.org/p/zHc9hM15iH
>
> Is there any issue in my logic??
>
> Thanks
> LV
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to