dudle icon indicating copy to clipboard operation
dudle copied to clipboard

Converting Time object to string

Open 7F11 opened this issue 3 months ago • 0 comments

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.

7F11 avatar Nov 25 '25 13:11 7F11