mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 00:04:22 +02:00
few bugdic
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
export function formatTime(format: string): string {
|
||||
return "";
|
||||
import { format } from "date-fns";
|
||||
|
||||
export function formatTime(fmt: string): string {
|
||||
try {
|
||||
return format(new Date(), fmt);
|
||||
} catch (err: any) {
|
||||
console.error(err);
|
||||
return "format error";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user