Skip to content

Fix hour-dependent spec in error_tracking_shared_context.rb

Stan Hu requested to merge sh-fix-time-format-exception into master

The test was failing because the expected format included a 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#method-i-strftime mentions, we can omit the leading value by using %-l in strftime.

Edited by Stan Hu

Merge request reports