shubhamsrkdev opened a new pull request, #14102:
URL: https://github.com/apache/lucene/pull/14102

   Quoting from [python release 
doc](https://docs.python.org/3/whatsnew/3.12.html) :
   
   
_[datetime](https://docs.python.org/3/library/datetime.html#module-datetime): 
[datetime.datetime](https://docs.python.org/3/library/datetime.html#datetime.datetime)’s
 
[utcnow()](https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow)
 and 
[utcfromtimestamp()](https://docs.python.org/3/library/datetime.html#datetime.datetime.utcfromtimestamp)
 are deprecated and will be removed in a future version. Instead, use 
timezone-aware objects to represent datetimes in UTC: respectively, call 
[now()](https://docs.python.org/3/library/datetime.html#datetime.datetime.now) 
and 
[fromtimestamp()](https://docs.python.org/3/library/datetime.html#datetime.datetime.fromtimestamp)
 with the tz parameter set to 
[datetime.UTC](https://docs.python.org/3/library/datetime.html#datetime.UTC)._
   
   Owing to this made two types of changes:
   
   1. Replaced `datetime.utcnow()` with `datetime.now(tz=timezone.utc)`
   2. Replaced `datetime.utcfromtimestamp(timestamp1)` with 
`datetime.fromtimestamp(timestamp=timestamp1, tz=timezone.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-unsubscr...@lucene.apache.org

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


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

Reply via email to