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

[BUG] DeprecationWarning: datetime.datetime.utcnow() is deprecated #3215

Open
waldiTM opened this issue Sep 14, 2024 · 0 comments
Open

[BUG] DeprecationWarning: datetime.datetime.utcnow() is deprecated #3215

waldiTM opened this issue Sep 14, 2024 · 0 comments
Assignees

Comments

@waldiTM
Copy link

waldiTM commented Sep 14, 2024

Describe the bug: A clear and concise description of what the bug is.

azurelinuxagent/common/logger.py:138
  /build/source/azurelinuxagent/common/logger.py:138: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    time = datetime.utcnow().strftime(Logger.LogTimeFormatInUTC)

Distro and WALinuxAgent details (please complete the following information):
Python 3.12

@narrieta narrieta self-assigned this Sep 16, 2024
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