Skip to content

Commit

Permalink
🐛 Fix #send_data to send DateTime as time
Browse files Browse the repository at this point in the history
`DateTime` is a subclass of `Date`.  So it was sent as date.
  • Loading branch information
taku0 authored and nevans committed Aug 28, 2024
1 parent e588adb commit 34f4bc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/net/imap/command_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ def send_data(data, tag = nil)
send_number_data(data)
when Array
send_list_data(data, tag)
when Date
send_date_data(data)
when Time, DateTime
send_time_data(data)
when Date
send_date_data(data)
when Symbol
send_symbol_data(data)
else
Expand Down

0 comments on commit 34f4bc3

Please sign in to comment.