-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SIMSBIOHUB-619: Import Observations With Sampling Information (#1389)
* New: import observations with sampling information * Remove observation location and timestamp not null constraint * Default sign value to direct sighting * Improve how codes are determined from csv imports & highlight observation date bug * Update date handling in xlsx parsing code. * Add constants for date/time formats. --------- Co-authored-by: Nick Phura <[email protected]>
- Loading branch information
1 parent
bb7855b
commit 0d9d67d
Showing
21 changed files
with
464 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Date formats. | ||
* | ||
* See BC Gov standards: https://www2.gov.bc.ca/gov/content/governments/services-for-government/policies-procedures/web-content-development-guides/writing-for-the-web/web-style-guide/numbers | ||
*/ | ||
export const DefaultDateFormat = 'YYYY-MM-DD'; // 2020-01-05 | ||
|
||
export const DefaultDateFormatReverse = 'DD-MM-YYYY'; // 05-01-2020 | ||
|
||
export const AltDateFormat = 'YYYY/MM/DD'; // 2020/01/05 | ||
|
||
export const AltDateFormatReverse = 'DD/MM/YYYY'; // 05/01/2020 | ||
|
||
/* | ||
* Time formats. | ||
*/ | ||
export const DefaultTimeFormat = 'HH:mm:ss'; // 23:00:00 | ||
|
||
/* | ||
* Datetime formats. | ||
*/ | ||
export const DefaultDateTimeFormat = `${DefaultDateFormat}T${DefaultTimeFormat}`; // 2020-01-05T23:00:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.