mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 05:01:50 +08:00

* Provisioning: Add hooks and utils * Fix folder API call * Update public/app/features/provisioning/utils/git.ts Co-authored-by: Ryan McKinley <ryantxu@gmail.com> * Fixes * Remove unused import --------- Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
7 lines
145 B
TypeScript
7 lines
145 B
TypeScript
export function formatTimestamp(timestamp?: number) {
|
|
if (!timestamp) {
|
|
return 'N/A';
|
|
}
|
|
return new Date(timestamp).toLocaleString();
|
|
}
|