From e5e755fa19c704421d91a1028f51563e3205df34 Mon Sep 17 00:00:00 2001 From: Spythere Date: Wed, 20 Jul 2022 23:55:08 +0200 Subject: [PATCH] Generowanie godziny --- src/store/store.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/store/store.ts b/src/store/store.ts index 6679822..9670772 100644 --- a/src/store/store.ts +++ b/src/store/store.ts @@ -3,13 +3,13 @@ import { defineStore } from 'pinia'; export const useStore = defineStore('store', { state: () => { return { - chosenOrderType: 'OrderO', + chosenOrderType: 'OrderN', orderFooter: { stationName: '', checkpointName: '', - hour: '', - minutes: '', + hour: new Date().toLocaleTimeString('pl-PL', { hour: '2-digit' }), + minutes: new Date().toLocaleTimeString('pl-PL', { minute: '2-digit' }), dispatcherName: '', secondaryDispatcherName: '', }, @@ -179,3 +179,4 @@ export const useStore = defineStore('store', { }, }); +