-
Notifications
You must be signed in to change notification settings - Fork 17
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
AttributeError: 'datetime.timezone' object has no attribute 'zone' #68
Comments
I have the exact same issue. 😞 |
Looking into this... |
@yusuftanmc, @patrik-eriksson I get the following when running with the provided config:
"SG" is a country code. I changed the following to use the TZ database name and it ran w/o incident:
|
Hi @dshore I have the timezone set to
|
@patrik-eriksson Can you run with "-v -v". We might be able to debug this from logs like this:
|
Thanks. I get this, looks ok?
|
Hi again, I solved it by hardcoding in Europe/Oslo in ad_manager.py Everything looks ok and managed to create everything without any issues. |
@patrik-eriksson I was able to reproduce issue. Looking into it. |
Bug Description: This is stripping out the zone name: which is required here: Potential solution: Need to refactor this code to be run after template rendering: |
Update timezone for writing to GAM (#68)
@patrik-eriksson I released a fix to dev. Can you try again after getting the dev version?
|
Refactored this here: This is much cleaner; creating a new custom datetime class that is used by yaml constructor and representer. |
Description
Failed attempt to create line items on GAM using line-item-manager
What I Did
When I used the --dry-run flag, it was successful.
But when I removed the flag
I encountered this error message:
line 413, in AdManagerDateTimePacker 'timeZoneId': value.tzinfo.zone,
AttributeError: 'datetime.timezone' object has no attribute 'zone'
config file:
demo_line_item_manager.yml.zip
error trace:
error.log
The text was updated successfully, but these errors were encountered: