# Python 3 signature sample code doesn't work

**URL:** <https://devforum.zoom.us/t/python-3-signature-sample-code-doesnt-work/8928>\
**Category:** Web\
**Created:** [March 18, 2020, 7:01pm UTC](https://devforum.zoom.us/t/python-3-signature-sample-code-doesnt-work/8928 "2020-03-18T19:01:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![frank.becker](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/frank.becker/32/3605_2.png) [@frank.becker](https://devforum.zoom.us/u/frank.becker)\
**Post date:** [March 18, 2020, 7:01pm UTC](https://devforum.zoom.us/t/python-3-signature-sample-code-doesnt-work/8928/1 "2020-03-18T19:01:15Z")

</div>

**Description**  
See [https://marketplace.zoom.us/docs/sdk/native-sdks/web/essential/signature](https://marketplace.zoom.us/docs/sdk/native-sdks/web/essential/signature)  
python 3 tab uses  
`datetime.datetime.utcnow().timestamp()`

which doesn’t give you seconds since epoch

python 2 sample code uses  
`time.time()`

and works and we are using that with our py3 code.

**Error**  
ZoomMtg.join fails due to signature with bad timestamp

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 18, 2020, 9:27pm UTC](https://devforum.zoom.us/t/python-3-signature-sample-code-doesnt-work/8928/2 "2020-03-18T21:27:36Z")

</div>

Hey @frank.becker, thanks for posting and using Zoom!

I have just updated the `datetime.datetime.utcnow().timestamp()` to `time.time()` for the python 3 example.

Thanks for letting us know! 🙂  
-Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:33pm UTC](https://devforum.zoom.us/t/python-3-signature-sample-code-doesnt-work/8928/3 "2020-08-21T19:33:45Z")

</div>

Closed on August 21, 2020, 7:33pm UTC


