[Django] #29546: deprecate timezone.FixedOffset in favor of datetime.timezone

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[Django] #29546: deprecate timezone.FixedOffset in favor of datetime.timezone

Django
#29546: deprecate timezone.FixedOffset in favor of datetime.timezone
------------------------------------------------+------------------------
               Reporter:  Sergey Fedoseev       |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Utilities             |        Version:  master
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 We have `FixedOffset` class each instance of which represents a timezone
 defined by a fixed offset from UTC, in Python 3.2 was added
 `datetime.timezone` class needed for the same purpose, so now we can get
 rid of our implementation.
 The possible pitfall is that `FixedOffset.dst()` returns `timedelta(0)`,
 but `datetime.timezone.dst()` returns `None`.

--
Ticket URL: <https://code.djangoproject.com/ticket/29546>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/053.b167824fbc46bf75b98d462023e6dc6f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #29546: deprecate timezone.FixedOffset in favor of datetime.timezone

Django
#29546: deprecate timezone.FixedOffset in favor of datetime.timezone
-------------------------------------+-------------------------------------
     Reporter:  Sergey Fedoseev      |                    Owner:  Sergey
         Type:                       |  Fedoseev
  Cleanup/optimization               |                   Status:  assigned
    Component:  Utilities            |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Sergey Fedoseev):

 * status:  new => assigned
 * owner:  nobody => Sergey Fedoseev


--
Ticket URL: <https://code.djangoproject.com/ticket/29546#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/068.0c2940be93e3f0fad494976ea48e5182%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #29546: deprecate timezone.FixedOffset in favor of datetime.timezone

Django
In reply to this post by Django
#29546: deprecate timezone.FixedOffset in favor of datetime.timezone
-------------------------------------+-------------------------------------
     Reporter:  Sergey Fedoseev      |                    Owner:  Sergey
         Type:                       |  Fedoseev
  Cleanup/optimization               |                   Status:  assigned
    Component:  Utilities            |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

 * stage:  Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/29546#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/068.d89d4e53d6205dd23ea1c42ae8b54ee6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #29546: deprecate timezone.FixedOffset in favor of datetime.timezone

Django
In reply to this post by Django
#29546: deprecate timezone.FixedOffset in favor of datetime.timezone
-------------------------------------+-------------------------------------
     Reporter:  Sergey Fedoseev      |                    Owner:  Sergey
         Type:                       |  Fedoseev
  Cleanup/optimization               |                   Status:  assigned
    Component:  Utilities            |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Sergey Fedoseev):

 * has_patch:  0 => 1


Comment:

 [https://github.com/django/django/pull/10145 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/29546#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/068.4a795c24461962fb3eb04412bfd79698%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #29546: deprecate timezone.FixedOffset in favor of datetime.timezone

Django
In reply to this post by Django
#29546: deprecate timezone.FixedOffset in favor of datetime.timezone
-------------------------------------+-------------------------------------
     Reporter:  Sergey Fedoseev      |                    Owner:  Sergey
         Type:                       |  Fedoseev
  Cleanup/optimization               |                   Status:  assigned
    Component:  Utilities            |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Tim Graham):

 Perhaps the deprecation should be delayed and included in #27753,
 otherwise projects that want to continue to support Python2  won't be able
 to avoid the deprecation warning. Django's usage of `FixedOffset` could be
 removed now.

--
Ticket URL: <https://code.djangoproject.com/ticket/29546#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/068.47c6cae9e24d30222270aa024c6cd2d6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #29546: deprecate timezone.FixedOffset in favor of datetime.timezone

Django
In reply to this post by Django
#29546: deprecate timezone.FixedOffset in favor of datetime.timezone
-------------------------------------+-------------------------------------
     Reporter:  Sergey Fedoseev      |                    Owner:  Sergey
         Type:                       |  Fedoseev
  Cleanup/optimization               |                   Status:  closed
    Component:  Utilities            |                  Version:  master
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"338f741c5eb6b91118f6a6b7c34b5e9b47a5661d" 338f741]:
 {{{
 #!CommitTicketReference repository=""
 revision="338f741c5eb6b91118f6a6b7c34b5e9b47a5661d"
 Fixed #29546 -- Deprecated django.utils.timezone.FixedOffset.
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/29546#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/068.c591a1de2699e95591e77d7162bd140a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.