Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Happy leap day #5

Closed
rtomayko opened this Issue · 2 comments

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

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

Closing as stale.

@rtomayko rtomayko closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.