From d14e3ce964bb4e4e5b905c7553d34ce746b90749 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 2 Jun 2026 15:01:47 +0900 Subject: [PATCH] Parse created_at via Time.new instead of Time.iso8601 A full ISO-8601 timestamp with seconds (the format compact index v2 sends, e.g. 2026-05-30T08:52:10Z) is recognised by Time.new directly, so we can drop the require "time" and the indirection through Time.iso8601 while keeping the same ArgumentError fallback for malformed input. Co-Authored-By: Claude Opus 4.7 --- bundler/lib/bundler/endpoint_specification.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bundler/lib/bundler/endpoint_specification.rb b/bundler/lib/bundler/endpoint_specification.rb index 89ffe3d740df..7c7ce107e205 100644 --- a/bundler/lib/bundler/endpoint_specification.rb +++ b/bundler/lib/bundler/endpoint_specification.rb @@ -165,11 +165,10 @@ def parse_metadata(data) when "created_at" value = v.is_a?(Array) ? v.last : v if value.is_a?(String) - require "time" - begin - @created_at = Time.iso8601(value) + @created_at = begin + Time.new(value) rescue ArgumentError - @created_at = nil + nil end end end