Project

General

Profile

Actions

Defect #11290

closed

ParseDate missing in Ruby 1.9x

Added by Jan Losinski almost 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Category:
Ruby support
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

I'm running Redmine on a Ruby 1.9x interpreter. This version has no ParseDate that is used in http://www.redmine.org/projects/redmine/repository/changes/trunk/lib/SVG/Graph/TimeSeries.rb

Because you use it 2 times with the pattern

arr = ParseDate.parsedate( data[:data][i] )
t = Time.local( *arr[0,6].compact )

you can simply replace it with
t = DateTime.parse( data[:data][i] ).to_time


Related issues

Related to Redmine - Defect #12711: incorrect fix of lib/SVG/Graph/TimeSeries.rbClosed

Actions
Actions

Also available in: Atom PDF