When parsing datetimes the hour is handled inconsistently when no meridiem value is given. The result is as expected for cases in which the hour is 6 or greater (without a leading 0). E.g. "6:00" is correctly parsed as 6:00 AM. For cases where the hour is less than 6 (without a leading 0) then the time is converted to PM, e.g. "5:00" is incorrectly parsed as 5:00 PM.
Note that 2-digit (0-padded) values are handled correctly.
Tested with various system time zone settings (OSX 10.11), within a Rails (4.2.4) environment with and without a configured time zone, and in IRB (non-Rails environment).
When parsing datetimes the hour is handled inconsistently when no meridiem value is given. The result is as expected for cases in which the hour is 6 or greater (without a leading 0). E.g. "6:00" is correctly parsed as 6:00 AM. For cases where the hour is less than 6 (without a leading 0) then the time is converted to PM, e.g. "5:00" is incorrectly parsed as 5:00 PM.
Note that 2-digit (0-padded) values are handled correctly.
Examples
Affected Chronic versions:
Tested with various system time zone settings (OSX 10.11), within a Rails (4.2.4) environment with and without a configured time zone, and in IRB (non-Rails environment).