Skip to content

Commit 34f4bc3

Browse files
taku0nevans
authored andcommitted
🐛 Fix #send_data to send DateTime as time
`DateTime` is a subclass of `Date`. So it was sent as date.
1 parent e588adb commit 34f4bc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/net/imap/command_data.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ def send_data(data, tag = nil)
4040
send_number_data(data)
4141
when Array
4242
send_list_data(data, tag)
43-
when Date
44-
send_date_data(data)
4543
when Time, DateTime
4644
send_time_data(data)
45+
when Date
46+
send_date_data(data)
4747
when Symbol
4848
send_symbol_data(data)
4949
else

0 commit comments

Comments
 (0)