mirror of
https://github.com/Spythere/genera-tor.git
synced 2026-05-03 05:28:13 +00:00
bug fix; feature: autouzupełnianie godz.
This commit is contained in:
@@ -3,9 +3,11 @@ export function currentFormattedDate() {
|
||||
}
|
||||
|
||||
export function currentFormattedMinutes() {
|
||||
return new Date().toLocaleTimeString('pl-PL', { minute: '2-digit' });
|
||||
const date = new Date();
|
||||
return (date.getMinutes() < 10 ? '0' : '') + date.getMinutes();
|
||||
}
|
||||
|
||||
export function currentFormattedHours() {
|
||||
return new Date().toLocaleTimeString('pl-PL', { hour: '2-digit' });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user