-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Item.Date issue with timezone (UTC vs PDT) #33
Comments
Where exactly are you seeing the issue? Is it in the time values in the Feed structure? |
I don't control the feed, but here is a scrubbed version of it...
Test Code:
|
I'm not entirely sure what's going on here, but I can't see where it's going wrong. What happens if you call |
Really strange behavior, no change to the time, but just says Didn't really dig into it, not sure if it's related to golang/go#4001 but the issue is closed. |
I'm afraid I don't know what to do here. Sorry :( |
Do you think you can reproduce this so to confirm it's not just me that's experiencing this issue? Thanks! |
Yeah, I'm getting the same behaviour. I suspect it's an issue with package |
Closed until we can confirm this is an issue in |
@SlyMarbo The behavior is expected. I need to supply location and parse in location in order to achieve the expected result. See referenced issue golang/go#16517.
output
How can I do that with your package? |
Huh, I was not expecting that. I'll see what I can do. |
Ah, it seems you can get the |
In an Item for the feed that I'm pulling from...
<pubDate>Tue, 19 Jul 2016 13:14:13 PDT</pubDate>
On my local laptop with local time set to PDT, I don't have a problem:
2016-07-19 13:14:13 -0700 PDT
On my server with local time set to UTC, I have this odd timezone problem:
2016-07-19 13:14:13 +0000 PDT
The text was updated successfully, but these errors were encountered: