• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

redhat-performance / cloud-governance / 29012649907
73%

Build:
DEFAULT BRANCH: main
Ran 09 Jul 2026 10:59AM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
29012649907

push

travis-pro

web-flow
Fix datetime parsing errors with timezone offsets (#1010)

* Fix datetime parsing errors with timezone offsets

Resolved 4 instances of "unconverted data remains: +00:00" errors:
- jira_operations.py: Strip timezone info when parsing Jira created timestamps (3 locations)
- price.py: Handle both datetime objects and strings with microseconds for EC2 LaunchTime

The fixes properly remove timezone offsets and milliseconds before parsing to prevent
strptime format mismatches.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Improve datetime parsing robustness for timezone offsets

Enhanced the LaunchTime parsing in price.py to handle edge cases:
- Use regex to remove fractional seconds while preserving timezone offset
- Support both positive (+) and negative (-) timezone offsets
- Use %z format specifier for proper timezone parsing
- Prevent silent corruption when offset follows fractional seconds

Addresses CodeRabbit feedback on potential timezone handling issues.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Add comprehensive unit tests for datetime parsing edge cases

Added 5 new unit tests to validate the datetime parsing fixes:
- test_ec2_price_with_datetime_object: Validates datetime object handling
- test_ec2_price_with_fractional_seconds: Tests microseconds in timestamps
- test_ec2_price_with_negative_timezone: Tests negative timezone offsets (-05:00)
- test_ec2_price_with_z_timezone: Tests Zulu time (Z) notation
- test_ec2_price_with_fractional_seconds_and_offset: Tests complex format

All tests pass and validate that the robust datetime parsing correctly handles
various ISO 8601 timestamp formats without errors.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Source Files on build 29012649907
Detailed source file information is not available for this build.
  • Back to Repo
  • 2a7646c2 on github
  • Prev Build on main (#28849113107)
  • Next Build on main (#29026084682)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc