dudle
dudle copied to clipboard
Converting Time object to string
I know nothing about Ruby. I just guess that the Time object has no more overloaded =~ operator in Ruby 3.3.
This is why I got these error messages:
/var/www/dudle/timestring.rb:28:in `initialize': undefined method `=~' for an instance of Time (NoMethodError)
from /var/www/dudle/timestring.rb:51:in `new'
from /var/www/dudle/timestring.rb:51:in `now'
from /var/www/dudle/timepollhead.rb:413:in `block (2 levels) in edit_column_htmlform'
from /var/www/dudle/timepollhead.rb:410:in `each'
from /var/www/dudle/timepollhead.rb:410:in `block in edit_column_htmlform'
from /var/www/dudle/timepollhead.rb:378:in `each'
from /var/www/dudle/timepollhead.rb:378:in `edit_column_htmlform'
from /var/www/dudle/poll.rb:545:in `edit_column_htmlform'
from /var/www/dudle/ktest/edit_columns.cgi:45:in `<main>'
I provide an experimental patch that seems to work.