From a2b0ea37ed3b2c7629e121f902ba74d8d6ba6815 Mon Sep 17 00:00:00 2001 From: taku0 Date: Tue, 27 Aug 2024 21:16:20 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20#send=5Fdata=20to=20send?= =?UTF-8?q?=20DateTime=20as=20time?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `DateTime` is a subclass of `Date`. So it was sent as date. --- lib/net/imap/command_data.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/net/imap/command_data.rb b/lib/net/imap/command_data.rb index 5739f909..180a254a 100644 --- a/lib/net/imap/command_data.rb +++ b/lib/net/imap/command_data.rb @@ -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