Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Eonasdan committed Dec 21, 2023
1 parent 408f7c6 commit 1fde400
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 12 deletions.
8 changes: 5 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ labels: ["Type: Bug", "State: Triage"]
body:
- type: markdown
attributes:
value: "Note: I am no longer taking feature requests.
Beginning in 2024, tickets will be paid support only. Please see [this discussion](https://github.com/Eonasdan/tempus-dominus/discussions/2694)."
value: "<h3>Note: I am no longer taking feature requests.
Beginning in 2024, tickets will be paid support only. Please see [this discussion](https://github.com/Eonasdan/tempus-dominus/discussions/2694).</h3>"
- type: checkboxes
attributes:
label: Prerequisites
Expand All @@ -18,6 +18,8 @@ body:
required: true
- label: I have read the [contributing guidelines](https://github.com/Eonasdan/tempus-dominus/blob/master/.github/CONTRIBUTING.md).
required: true
- label: I understand that only sponsored issues will be worked on and that if I wish to sponsor an issue, I will contact the owner FIRST.
required: true
- type: textarea
id: what-happened
attributes:
Expand All @@ -32,7 +34,7 @@ body:
id: reduced-test-case
attributes:
label: StackBlitz fork
description: "You MUST provide an StackBlitz fork of one of the following examples: [HTML](https://stackblitz.com/edit/tempus-dominus-v6-simple-setup), [Dev branch](https://stackblitz.com/edit/tempus-dominus-v6-next), [Typescript](https://stackblitz.com/edit/v6-typescript), [Using import](https://stackblitz.com/edit/tempus-dominus-v6-simple-setup-import), or [jQuery](https://stackblitz.com/edit/tempus-dominus-v6-simple-jquery-setup)."
description: "You MUST provide an StackBlitz fork of one of the following examples: [HTML](https://stackblitz.com/edit/tempus-dominus-v6-simple-setup), [Typescript](https://stackblitz.com/edit/v6-typescript), [Using import](https://stackblitz.com/edit/tempus-dominus-v6-simple-setup-import), or [jQuery](https://stackblitz.com/edit/tempus-dominus-v6-simple-jquery-setup)."
validations:
required: true
- type: dropdown
Expand Down
2 changes: 0 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
PRs relating to the v4 will be closed and locked.

* **Please check if the PR fulfills these requirements**
- [ ] The PR is against the `development` branch
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)
- [ ] Does NOT modify files under the "dist" folder.


* **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...). If this is a fix, please tag a bug.
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/R6R53OEFF)

# Paid support only

Please note that I'm moving on to other projects. New issues will need to be sponsored. This can be done via BountySource or my other donation links. Please reach out to me first so we can discuss the terms. Thank you for your years of support.

# Tempus Dominus Date/Time Picker v6.7.19

Tempus Dominus is a powerful and robust date time picker for javascript. Version 6 is another major rewrite over the previous version. V6 is written with modern browsers in mind and is written in typescript. Bootstrap, momentjs and jQuery are no longer required dependencies. Popper2 is all that is required for the picker to position correctly. If you still require jQuery (seriously, you should move off that asap) there's a jQuery provider that wraps the native js functions.
Expand Down
19 changes: 14 additions & 5 deletions src/js/dates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,20 @@ export default class Dates {
*/
//eslint-disable-next-line @typescript-eslint/no-explicit-any
parseInput(value: any): DateTime {
return OptionConverter.dateConversion(
value,
'input',
this.optionsStore.options.localization
);
try {
return OptionConverter.dateConversion(
value,
'input',
this.optionsStore.options.localization
);
} catch (e) {
this._eventEmitters.triggerEvent.emit({
type: Namespace.events.error,
reason: Namespace.errorMessages.failedToSetInvalidDate,
date: value,
} as FailEvent);
return undefined;
}
}

/**
Expand Down
3 changes: 1 addition & 2 deletions src/js/utilities/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ export class ErrorMessages {
customDateFormatError(message?: string) {
const error = new TdError(`${this.base} Custom Date Format: ${message}`);
error.code = 9;
//throw error;
console.warn(error);
throw error;
}

/**
Expand Down

0 comments on commit 1fde400

Please sign in to comment.