← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1551290] [NEW] leap year bug - day is out of range for month

 

You have been subscribed to a public bug:

Horizon Dashboard -> Admin -> Settings -> Change Language -> Save (->
Trigger)

triggers a bug in
openstack_dashboard/dashboards/settings/user/forms.py : 33
which currently has
    return datetime(now.year + 1, now.month, now.day, now.hour,
                    now.minute, now.second, now.microsecond, now.tzinfo)

ValueError: day is out of range for month

because there will not be a 2017-02-29

IMHO, we should just use the Epoch value and add 365*24*60*60 seconds

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
leap year bug - day is out of range for month
https://bugs.launchpad.net/bugs/1551290
You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).


References