diff --git a/web/src/components/MyBookings.jsx b/web/src/components/MyBookings.jsx index 3619de3..221b2e2 100644 --- a/web/src/components/MyBookings.jsx +++ b/web/src/components/MyBookings.jsx @@ -83,7 +83,10 @@ const MyBookings = () => {
  • Desk: {booking.desk_name || booking.desk_id}{" "}
    - Date: {new Date(booking.from_date).toLocaleDateString()}
    + Date: {new Date(booking.from_date).toLocaleDateString( + "en-GB", + )}{" "} +
    {tab === "upcoming" && ( -

    Week of {weekDays[0].toLocaleDateString()}

    +

    Week of {weekDays[0].toLocaleDateString("en-GB")}

    @@ -88,7 +88,16 @@ const CalendarView = () => { {weekDays.map((day) => ( - + ))} diff --git a/web/src/pages/Home.jsx b/web/src/pages/Home.jsx index c488389..c4805d5 100644 --- a/web/src/pages/Home.jsx +++ b/web/src/pages/Home.jsx @@ -117,7 +117,7 @@ const Home = () => { const formatDate = (dateString) => { const date = new Date(dateString); - return date.toLocaleDateString("en-US", { + return date.toLocaleDateString("en-GB", { weekday: "long", year: "numeric", month: "long", @@ -137,7 +137,7 @@ const Home = () => {
    @@ -145,7 +145,7 @@ const Home = () => {
    Desk{day.toLocaleDateString()} +
    +
    + {day.toLocaleDateString("en-GB", { weekday: "short" })} +
    +
    + {day.toLocaleDateString("en-GB")} +
    +
    +