Shadow Tool Datumsformat

Issue #1131 resolved
Hannes Blitza created an issue

Version: 2.38.0, 2.41.1

Tool: Shadow (3D Modus)

Portal: https://geoportal-hamburg.de/geo-online/ (Aufruf am 1.2.2024, v2.41.1)

Bug: Datumsformat bei “Wählen Sie ein Datum:” erscheint im Format “MM-DD-YYYY”

Vermutung:

Code in der ShadowTool.vue Komponente:

        checkDateFormat () {
            if (this.currentLocale === "de" || this.currentLocale === "platt") {
                this.showDate = dayjs(this.date).format("DD-MM-YYYY");
                this.pickDateFormat = "DD.MM.YYYY";
            }
            else {
                this.showDate = dayjs(this.date).format("MM-DD-YYYY");
                this.pickDateFormat = "MM.DD.YYYY";
            }
        },

Erster if clause sollte greifen, Sprache ist auf deutsch. Aber currentLocale ist undefined.

Daher eine Gegenprobe: Sprachauswahl aktiviert, einmal auf englisch, dann auf deutsch gestellt. Dann klappt es und der Code im ersten Block wird ausgeführt.

Comments (4)

  1. Christopher Reder

    Hallo Herr Blitza,

    der Fehler ist mit der neuen Masterportal Version 2.43.0 gefixt.

    Viele Grüße

    Christopher Reder

  2. Log in to comment