#10979: FixedOffset.__repr__ is misleading for negative offsets ----------------------------+----------------------------------------------- Reporter: gsong | Owner: nobody Status: new | Milestone: Component: Core framework | Version: SVN Keywords: tzinfo | Stage: Unreviewed Has_patch: 1 | ----------------------------+----------------------------------------------- If you pass a negative offset to `FixedOffset`, the tzinfo representation is misleading:
{{{ >>> from django.utils.tzinfo import FixedOffset >>> tz = FixedOffset(-510) >>> tz -0930 }}} The attached patch simply calculates the hours as a float, which yields the more correct representation. {{{ >>> from django.utils.tzinfo import FixedOffset >>> tz = FixedOffset(-510) >>> tz -0830 }}} -- Ticket URL: <http://code.djangoproject.com/ticket/10979> Django <http://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 post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---