Time Format problem

0 views
Skip to first unread message

Przemyslaw Wroblewski

unread,
Jun 20, 2007, 10:45:06 AM6/20/07
to Ruby on Rails: DHTML Calendar
Hi,

default ifFormat value should be set to '%Y/%m/%d %H:%M:%S',
however when format_js_hash is called this format is
being destroyed by value.inspect.gsub(":","") so time gets formatted
as eg."2007-06-20 164408"

def format_js_hash(options)
options.collect { |key,value| key.to_s + ':' +
value.inspect.gsub(":","") }.join(',')
end

why did you add value.inspect.gsub(":","") to that function ? is it
safe to remove that part ?

thanks,
Przemek

Ed Moss

unread,
Jun 21, 2007, 9:46:52 PM6/21/07
to Ruby on Rails: DHTML Calendar
Fixed in edge branch.

On Jun 20, 8:45 am, Przemyslaw Wroblewski

Reply all
Reply to author
Forward
0 new messages