diff --git a/lib/openvpn-status-web/parser/modern_stateless.rb b/lib/openvpn-status-web/parser/modern_stateless.rb index de01813..b9dae1c 100644 --- a/lib/openvpn-status-web/parser/modern_stateless.rb +++ b/lib/openvpn-status-web/parser/modern_stateless.rb @@ -45,7 +45,7 @@ module OpenVPNStatusWeb private_class_method def self.parse_date(date_string) DateTime.strptime(date_string, '%a %b %d %k:%M:%S %Y') - rescue Date::Error + rescue ArgumentError DateTime.strptime(date_string, '%Y-%m-%d %k:%M:%S') end end