mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 09:35:36 -05:00
Revamping cutover page based on new mockups (#16547)
* WIP * Fixing some table issues * updating package.json * Fixing readable time * fixing display string * Handling null case in get12hourtime util method
This commit is contained in:
@@ -218,3 +218,11 @@ export function getMigrationStatusImage(status: string): IconPath {
|
||||
return IconPathHelper.error;
|
||||
}
|
||||
}
|
||||
|
||||
export function get12HourTime(date: Date | undefined): string {
|
||||
const localeTimeStringOptions: Intl.DateTimeFormatOptions = {
|
||||
hour: '2-digit',
|
||||
minute: '2-digit'
|
||||
};
|
||||
return (date ? date : new Date()).toLocaleTimeString([], localeTimeStringOptions);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user