You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "ChrisHegarty (via GitHub)" <gi...@apache.org> on 2024/12/13 10:34:22 UTC

[I] releaseWizard.py DeprecationWarning: datetime.datetime.utcnow() is deprecated [lucene]

ChrisHegarty opened a new issue, #14063:
URL: https://github.com/apache/lucene/issues/14063

   I get many verbose warnings when running the release wizard, which obfuscate the output. E.g. 
   
   ```
   /Users/chegar/git/tmp/lucene/./dev-tools/scripts/releaseWizard.py:102: 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).
     'epoch': unix_time_millis(datetime.utcnow()),
   /Users/chegar/git/tmp/lucene/./dev-tools/scripts/releaseWizard.py:1852: 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).
     return datetime.utcnow() + timedelta(hours=73)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [I] releaseWizard.py DeprecationWarning: datetime.datetime.utcnow() is deprecated [lucene]

Posted by "rmuir (via GitHub)" <gi...@apache.org>.
rmuir commented on issue #14063:
URL: https://github.com/apache/lucene/issues/14063#issuecomment-2541556163

   change to `datetime.now(tz=UTC)`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [I] releaseWizard.py DeprecationWarning: datetime.datetime.utcnow() is deprecated [lucene]

Posted by "ChrisHegarty (via GitHub)" <gi...@apache.org>.
ChrisHegarty closed issue #14063: releaseWizard.py DeprecationWarning: datetime.datetime.utcnow() is deprecated 
URL: https://github.com/apache/lucene/issues/14063


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org