Happy leap day #5

Closed
rtomayko opened this Issue Feb 29, 2012 · 2 comments

Comments

Projects
None yet
1 participant
@rtomayko

Only triggered when an absolute date in 2011 is used. Like from=20111201. I know this worked a few days ago.

Traceback:

Traceback (most recent call last):
  File "/usr/share/graphite/lib/python2.5/site-packages/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/usr/share/graphite/webapp/graphite/render/views.py", line 46, in renderView
    (graphOptions, requestOptions) = parseOptions(request)
  File "/usr/share/graphite/webapp/graphite/render/views.py", line 240, in parseOptions
    fromTime = parseATTime( queryParams['from'] )
  File "/usr/share/graphite/webapp/graphite/render/attime.py", line 35, in parseATTime
    return parseTimeReference(ref) + parseTimeOffset(offset)
  File "/usr/share/graphite/webapp/graphite/render/attime.py", line 84, in parseTimeReference
    refDate = refDate.replace(year= int(ref[:4]))
ValueError: day is out of range for month
@rtomayko

This comment has been minimized.

Show comment Hide comment
@rtomayko

rtomayko Feb 29, 2012

Looks like it's here:

https://github.com/tmm1/graphite/blob/master/webapp/graphite/render/attime.py#L83-84

The year is being adjusted from the current time and there's no Feb 29 in 2011.

Looks like it's here:

https://github.com/tmm1/graphite/blob/master/webapp/graphite/render/attime.py#L83-84

The year is being adjusted from the current time and there's no Feb 29 in 2011.

@rtomayko

This comment has been minimized.

Show comment Hide comment
@rtomayko

rtomayko Nov 26, 2014

Closing as stale.

Closing as stale.

@rtomayko rtomayko closed this Nov 26, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment