Skip to content

Conversation

@MukundSinghRajput
Copy link
Contributor

  • Added import datetime to ensure datetime functionality is available
  • Replaced deprecated datetime.datetime.utcnow() with datetime.datetime.now(datetime.timezone.utc)
  • Used lambda for dynamic evaluation of default datetime in BlogPost.posted field

- Added `import datetime` to ensure datetime functionality is available
- Replaced deprecated `datetime.datetime.utcnow()` with `datetime.datetime.now(datetime.timezone.utc)`
- Used lambda for dynamic evaluation of default datetime in BlogPost.posted field
@bagerard
Copy link
Collaborator

bagerard commented Apr 9, 2025

makes sense, thanks for the contribution 👍

@bagerard bagerard merged commit 7504670 into MongoEngine:master Apr 9, 2025
18 of 20 checks passed
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

Successfully merging this pull request may close these issues.

2 participants