Skip to content
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: 'str' object has no attribute 'isoformat' #128

Open
devopjj opened this issue Mar 22, 2020 · 1 comment
Open

AttributeError: 'str' object has no attribute 'isoformat' #128

devopjj opened this issue Mar 22, 2020 · 1 comment

Comments

@devopjj
Copy link

devopjj commented Mar 22, 2020

I just learn how to post new from md file and set up the post date, but I got errors:
env:
python3.7,pip 20.0.2

$ easyblogger post -t 'Hello World3' -l 'test1' -c 'Hello Test' --date "2018-04-30T12:42:00+05:30"
Traceback (most recent call last):
File "/usr/local/bin/easyblogger", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/blogger/main.py", line 291, in main
return runner(args)
File "/usr/local/lib/python3.7/site-packages/blogger/main.py", line 378, in runner
return processItem(args)
File "/usr/local/lib/python3.7/site-packages/blogger/main.py", line 306, in processItem
publishDate=args.publishDate)
File "/usr/local/lib/python3.7/site-packages/blogger/blogger.py", line 246, in post
blogPost["published"] = publishDate.isoformat()
AttributeError: 'str' object has no attribute 'isoformat'

@khoguan
Copy link

khoguan commented Apr 13, 2023

Hello, I have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants