diff --git a/ui/src/components/LogTable.tsx b/ui/src/components/LogTable.tsx index 353ece5d..3e58de80 100644 --- a/ui/src/components/LogTable.tsx +++ b/ui/src/components/LogTable.tsx @@ -25,7 +25,7 @@ function LogTable(props: IProps) { const onDrawerOpen = (time: { seconds: number } | undefined, body: string) => { const ts = new Date(0); ts.setUTCSeconds(time!.seconds); - const drawerTitle = format(ts, "YYYY-MM-DD HH:mm:ss"); + const drawerTitle = format(ts, "yyyy-MM-dd HH:mm:ss"); return () => { setBody(body); @@ -106,7 +106,7 @@ function LogTable(props: IProps) { render: (text, obj) => { const ts = new Date(0); ts.setUTCSeconds(obj.time!.seconds); - return format(ts, "YYYY-MM-DD HH:mm:ss"); + return format(ts, "yyyy-MM-dd HH:mm:ss"); }, }, { diff --git a/ui/src/views/applications/integrations/GenerateMqttCertificate.tsx b/ui/src/views/applications/integrations/GenerateMqttCertificate.tsx index 2d81cc94..acf0a7e7 100644 --- a/ui/src/views/applications/integrations/GenerateMqttCertificate.tsx +++ b/ui/src/views/applications/integrations/GenerateMqttCertificate.tsx @@ -59,7 +59,7 @@ function GenerateMqttCertificate(props: IProps) { const cert = certificate!; const initial = { - expiresAt: format(cert.getExpiresAt()!.toDate()!, "YYYY-MM-DD HH:mm:ss"), + expiresAt: format(cert.getExpiresAt()!.toDate()!, "yyyy-MM-dd HH:mm:ss"), caCert: cert.getCaCert(), tlsCert: cert.getTlsCert(), tlsKey: cert.getTlsKey(), diff --git a/ui/src/views/devices/DeviceDashboard.tsx b/ui/src/views/devices/DeviceDashboard.tsx index c6f99eb2..f5466790 100644 --- a/ui/src/views/devices/DeviceDashboard.tsx +++ b/ui/src/views/devices/DeviceDashboard.tsx @@ -153,7 +153,7 @@ function DeviceDashboard(props: IProps) { let lastSeenAt = "Never"; if (props.lastSeenAt !== undefined) { - lastSeenAt = format(props.lastSeenAt, "YYYY-MM-DD HH:mm:ss"); + lastSeenAt = format(props.lastSeenAt, "yyyy-MM-dd HH:mm:ss"); } const loading = !deviceLinkMetricsLoaded || !deviceMetrics; diff --git a/ui/src/views/devices/ListDevices.tsx b/ui/src/views/devices/ListDevices.tsx index 8768b37d..d2ebb5c5 100644 --- a/ui/src/views/devices/ListDevices.tsx +++ b/ui/src/views/devices/ListDevices.tsx @@ -75,7 +75,7 @@ function ListDevices(props: IProps) { if (record.lastSeenAt !== undefined) { const ts = new Date(0); ts.setUTCSeconds(record.lastSeenAt.seconds); - return format(ts, "YYYY-MM-DD HH:mm:ss"); + return format(ts, "yyyy-MM-dd HH:mm:ss"); } return "Never"; }, @@ -87,9 +87,8 @@ function ListDevices(props: IProps) { width: 250, render: (text, record) => ( {text} @@ -180,7 +179,7 @@ function ListDevices(props: IProps) { req.setMulticastGroupId(mgSelected); req.setDevEui(devEui); - MulticastGroupStore.addDevice(req, () => {}); + MulticastGroupStore.addDevice(req, () => { }); } setMgModalVisible(false); @@ -192,7 +191,7 @@ function ListDevices(props: IProps) { req.setRelayDevEui(relaySelected); req.setDeviceDevEui(devEui); - RelayStore.addDevice(req, () => {}); + RelayStore.addDevice(req, () => { }); } setRelayModalVisible(false); diff --git a/ui/src/views/gateways/GatewayCertificate.tsx b/ui/src/views/gateways/GatewayCertificate.tsx index f5d50f5e..ed952ec7 100644 --- a/ui/src/views/gateways/GatewayCertificate.tsx +++ b/ui/src/views/gateways/GatewayCertificate.tsx @@ -55,7 +55,7 @@ function GatewayCertificate(props: IProps) { const cert = certificate!; const initial = { - expiresAt: format(cert.getExpiresAt()!.toDate()!, "YYYY-MM-DD HH:mm:ss"), + expiresAt: format(cert.getExpiresAt()!.toDate()!, "yyyy-MM-dd HH:mm:ss"), caCert: cert.getCaCert(), tlsCert: cert.getTlsCert(), tlsKey: cert.getTlsKey(), diff --git a/ui/src/views/gateways/GatewayDashboard.tsx b/ui/src/views/gateways/GatewayDashboard.tsx index c46d0c29..7ced0aef 100644 --- a/ui/src/views/gateways/GatewayDashboard.tsx +++ b/ui/src/views/gateways/GatewayDashboard.tsx @@ -89,7 +89,7 @@ function GatewayDashboard(props: IProps) { let lastSeenAt: string = "Never"; if (props.lastSeenAt !== undefined) { - lastSeenAt = format(props.lastSeenAt, "YYYY-MM-DD HH:mm:ss"); + lastSeenAt = format(props.lastSeenAt, "yyyy-MM-dd HH:mm:ss"); } return ( diff --git a/ui/src/views/gateways/ListGateways.tsx b/ui/src/views/gateways/ListGateways.tsx index 59dc7eb7..67e13529 100644 --- a/ui/src/views/gateways/ListGateways.tsx +++ b/ui/src/views/gateways/ListGateways.tsx @@ -66,7 +66,7 @@ function ListGateways(props: IProps) { if (record.lastSeenAt !== undefined) { const ts = new Date(0); ts.setUTCSeconds(record.lastSeenAt.seconds); - return format(ts, "YYYY-MM-DD HH:mm:ss"); + return format(ts, "yyyy-MM-dd HH:mm:ss"); } }, }, @@ -179,7 +179,7 @@ function ListGateways(props: IProps) { req.setMulticastGroupId(mgSelected); req.setGatewayId(gatewayId); - MulticastGroupStore.addGateway(req, () => {}); + MulticastGroupStore.addGateway(req, () => { }); } setMgModalVisible(false); diff --git a/ui/src/views/gateways/mesh/ListRelayGateways.tsx b/ui/src/views/gateways/mesh/ListRelayGateways.tsx index 2c7b92ff..f5df33df 100644 --- a/ui/src/views/gateways/mesh/ListRelayGateways.tsx +++ b/ui/src/views/gateways/mesh/ListRelayGateways.tsx @@ -46,7 +46,7 @@ function ListRelayGateways(props: IProps) { if (record.lastSeenAt !== undefined) { const ts = new Date(0); ts.setUTCSeconds(record.lastSeenAt.seconds); - return format(ts, "YYYY-MM-DD HH:mm:ss"); + return format(ts, "yyyy-MM-dd HH:mm:ss"); } }, },