Skip to content

fix: add regression test for IST (India Standard Time) GH#9/RT#77886#101

Merged
atoomic merged 1 commit intocpan-authors:mainfrom
Koan-Bot:koan.atoomic/fix-issue-9
Mar 21, 2026
Merged

fix: add regression test for IST (India Standard Time) GH#9/RT#77886#101
atoomic merged 1 commit intocpan-authors:mainfrom
Koan-Bot:koan.atoomic/fix-issue-9

Conversation

@Koan-Bot
Copy link
Copy Markdown

@Koan-Bot Koan-Bot commented Mar 19, 2026

Summary

The ist entry in Time::Zone was historically commented out, causing tz_offset("IST") to return undef and time2str() to emit "Use of uninitialized value in addition" warnings while silently returning UTC time instead of India Standard Time (UTC+5:30). The fix (uncommenting the entry) was already applied to main; this PR adds the missing regression test.

Fixes #9

Changes

  • Add t/gh9.t: verifies tz_offset("IST") returns +19800 (+5:30) and time2str() formats epoch 0 as 05:30:00 in IST with no warnings.

Test plan

  • prove -lv t/gh9.t — all 3 assertions pass
  • prove -l t/ — full suite (1220 tests) passes with no regressions

Generated by Kōan /fix


Quality Report

Changes: 1 file changed, 25 insertions(+)

Code scan: clean

Tests: skipped

Branch hygiene: clean

Generated by Kōan post-mission quality pipeline

Verify that tz_offset("IST") returns +19800 (UTC+5:30) and that
time2str() applies the correct India Standard Time offset without
emitting "uninitialized value" warnings.

The fix (uncommenting the "ist" entry in Time/Zone.pm) was already
applied; this commit adds the missing regression test.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@atoomic atoomic marked this pull request as ready for review March 21, 2026 04:02
@atoomic atoomic merged commit aa44d0d into cpan-authors:main Mar 21, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Time/Zone.pm missing India Standard Time [rt.cpan.org #77886]

2 participants