-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Patterns of DateTime.fromString and DateTime.format are not aligned #2855
Labels
Comments
Start a new pull request in StackBlitz Codeflow. |
I believe the fix is trivial :) single |
Eonasdan
added
Area: TypeScript
and removed
State: Triage
Tickets that need to be triaged.
labels
Sep 28, 2023
New release should fix this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Describe the issue
DateTime.fromString
can handle singley
in the pattern https://github.com/Eonasdan/tempus-dominus/blob/master/src/js/datetime.ts#L767While
DateTime.format
can't: https://github.com/Eonasdan/tempus-dominus/blob/master/src/js/datetime.ts#L921So in case
localization.format
with singley
is used (for ex.dd.MM.y, HH:mm:ss
)The date can be parsed correctly BUT being set into input as
27.09.undefined, 14:47:41
on selectStackBlitz fork
https://codepen.io/solomax/pen/bGOeYKg
What operating system(s) are you seeing the problem on?
Linux
What browser(s) are you seeing the problem on?
Chrome, Firefox
What version of are you using? You can find this information from the sample StackBlitz.
6.7.11, 6.7.13
What your browser's locale? You can find this information from the sample StackBlitz.
en-US
The text was updated successfully, but these errors were encountered: