web client v0.9 (restaurant view)

This commit is contained in:
2020-10-04 17:24:36 +02:00
parent 21ea3f821e
commit b3ade3de7d
15 changed files with 456 additions and 36 deletions

View File

@@ -46,3 +46,8 @@ export const openInNewTab = (url) => {
const newWindow = window.open(url, "_blank", "noopener,noreferrer");
if (newWindow) newWindow.opener = null;
};
export const formatDateBasic = (input) => {
const date = new Date(input);
return date.toLocaleString("pl-PL", { dateStyle: "long" });
};