Fix hour-dependent spec in error_tracking_shared_context.rb
The test was failing because the expected format included the leading 0 in "08:01:29 AM UTC" instead of omitting it in "8:01:29 AM UTC". As https://ruby-doc.org/stdlib-2.6.5/libdoc/date/rdoc/DateTime.html mentions, we can omit the leading value by using `%-l` in `strftime`.
Showing
Please register or sign in to comment