web client v0.9 (restaurant view)
This commit is contained in:
@@ -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" });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user