Datetime bug? How do I use anvil.tz right

What I’m trying to do:
Trying to print date time. Doesn’t seem to print and pauses in my code. so I tried recreating the date time on a separate project and I think I copied and pasted from the post right but none of them work.
Any ideas what I’m doing wrong or is it a bug? Can’t post to bug category, they greyed it out.
What I’ve tried and what’s not working:
Tried following

NameError: name 'datetime' is not defined

  • at ServerModule1, line 9

Looks like you’re missing an import statement. Something like

from datetime import datetime

as one of the problems.

I’ll let the other Python error messages speak for themselves.

1 Like