-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deeplink to the PAT creation page in PAT profile creation wizard (#1047)
## Changes * Also prevent overwritting old .databrickscfg.bak by adding timestamp to the name. * Standardise date format in bundle resource explorer. ## Tests <!-- How is this tested? -->
- Loading branch information
1 parent
25f964f
commit fc9d3e7
Showing
4 changed files
with
43 additions
and
5 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export function toString(date: Date): string { | ||
return toDateString(date) + " " + toTimeString(date); | ||
} | ||
|
||
export function toDateString(date: Date): string { | ||
const day = date.getDay(); | ||
const month = date.getMonth() + 1; | ||
const year = date.getFullYear(); | ||
|
||
return `${day}-${month}-${year}`; | ||
} | ||
|
||
export function toTimeString(date: Date): string { | ||
return date.toLocaleTimeString(); | ||
} |
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