Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid date time being accepted #31

Closed
justin-tay opened this issue Apr 17, 2024 · 1 comment
Closed

Invalid date time being accepted #31

justin-tay opened this issue Apr 17, 2024 · 1 comment
Labels
Milestone

Comments

@justin-tay
Copy link

This is a regression as previously in v1.8.0 the invalid date time 1963-06-19T08:30:06.28123+01:00Z that has a trailing Z was being rejected but is now being accepted.

This change was introduced at

package com.ethlo.time;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public class IssueTest {
	@Test
	void shouldNotAllowTrailingZ() {
		Assertions.assertThrows(Exception.class, () -> ITU.parseDateTime("1963-06-19T08:30:06.28123+01:00Z"));
	}
}
@ethlo ethlo added the bug label Apr 17, 2024
@ethlo ethlo added this to the 1.10.2 milestone Apr 17, 2024
ethlo pushed a commit that referenced this issue Apr 17, 2024
ethlo added a commit that referenced this issue Apr 17, 2024
Co-authored-by: Morten Haraldsen <dev@ethlo.com>
@ethlo
Copy link
Owner

ethlo commented Apr 17, 2024

Thank you very much for your bug report. A fix has been released in version 1.10.2.

@ethlo ethlo closed this as completed Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants