# Uhrzeit auf UTC anstatt Europe/Berlin

**URL:** https://forum.shopware.com/t/uhrzeit-auf-utc-anstatt-europe-berlin/89938
**Category:** Shopware 6 (German)
**Created:** [24. August 2021 um 18:25 UTC](https://forum.shopware.com/t/uhrzeit-auf-utc-anstatt-europe-berlin/89938 "2021-08-24T18:25:32Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Foxterra](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@Foxterra](https://forum.shopware.com/u/Foxterra)
#### Post date: [24. August 2021 um 18:25 UTC](https://forum.shopware.com/t/uhrzeit-auf-utc-anstatt-europe-berlin/89938/1 "2021-08-24T18:25:32Z")

</div>

Ich betreibe ein eigenen Server mit Shopware 6.  
Im Server, PHP und Mariadb ist Europe/Berlin eingestellt.  
Allerdings tut Shopware UTC nehmen, bzw. -2 Stunden.

Die Logs in /var/log/prod… werden mit die Uhrzeit -2 Stunden eingetragen.  
Wo nun muss die Uhrzeit bei Showpare 6 eingestellt werden?

Und nimmt Shopware 6 die Uhrzeit von der Server, von PHP oder von MariaDB ??

Danke im Voraus!

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [25. August 2021 um 09:55 UTC](https://forum.shopware.com/t/uhrzeit-auf-utc-anstatt-europe-berlin/89938/2 "2021-08-25T09:55:17Z")

</div>

Hallo,

in der Datenbank steht immer alles in UTC. Das ist korrekt.  
Bei der Ausgabe der Daten im Admin wird in die jeweilige Zeitzone konvertiert.

Moritz

---

<div class="post-metadata">

### Author: ![Foxterra](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@Foxterra](https://forum.shopware.com/u/Foxterra)
#### Post date: [25. August 2021 um 16:05 UTC](https://forum.shopware.com/t/uhrzeit-auf-utc-anstatt-europe-berlin/89938/3 "2021-08-25T16:05:44Z")

</div>

Vielen Dank für die Rückmeldung.

Also hat alles sein Ordnung. Allerdings funktioniert die Tagesstatistik nicht korrekt.

Bzw. zeigt als aktuelle Tag, den Gesamtumsatz an und nicht da wo der Umsatz tatsächlich war.

Ist das Problem schon bekannt? Version 6.4.3.1

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [25. August 2021 um 17:27 UTC](https://forum.shopware.com/t/uhrzeit-auf-utc-anstatt-europe-berlin/89938/4 "2021-08-25T17:27:50Z")

</div>

> [@Falsche Statistik im Dashboard](https://forum.shopware.com/t/falsche-statistik-im-dashboard/89845/4):
>
> Hallo @der_marco, das ist eigentlich ein Standard-Setting der Datenbank. Wenn ich eine Installation von MySQL aufsetze ohne auch nur irgendwas zu ändern, ist das schon richtig konfiguriert. Auch wenn ich mir einen offiziellen Docker-Container von MySQL ziehe, ist dieser Wert konfiguriert. Der Wert sollte der Timezone entsprechen, in der der Server steht. Die Applikation wandelt es dann in die richtige Zeitzone zum Anzeigen um. Grüße Moritz

---

<div class="post-metadata">

### Author: ![Moorleiche](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@Moorleiche](https://forum.shopware.com/u/Moorleiche)
#### Post date: [25. August 2021 um 19:20 UTC](https://forum.shopware.com/t/uhrzeit-auf-utc-anstatt-europe-berlin/89938/5 "2021-08-25T19:20:25Z")

</div>

Das das Thema grade bei mir auch aktuell ist, würde ich ein Ticket eröffnen:

> <https://github.com/shopware/platform/issues/2037#issuecomment-905802231>
>
> \### PHP Version
> 
> 7.4.22 (container's default version)
> 
> \### Shopware Version
> …
> 
> 6.4.x-dev
> 
> \### Expected behaviour
> 
> "./psh.phar install" executed within container should properly install and configure shopware 6 platform
> 
> \### Actual behaviour
> 
> installator fails at this point
> output is self explanatory
> 
> \`\`\`
> (36/52) Starting
> \> APP\_ENV=prod bin/console framework:demodata
> 	
> Demodata Generator
> ==================
> 	
> 10:46:54 CRITICAL \[console\] Error thrown while running command "framework:demodata". Message: "Class 'bheller\\ImagesGenerator\\ImagesGeneratorProvider' not found" \["exception" =\> Error { …},"command" =\> "framework:demodata","message" =\> "Class 'bheller\\ImagesGenerator\\ImagesGeneratorProvider' not found"\]
> 	
> In DemodataService.php line 95:
> 	                                                                                               
> Attempted to load class "ImagesGeneratorProvider" from namespace "bheller\\ImagesGenerator".  
> Did you forget a "use" statement for "Maltyxx\\ImagesGenerator\\ImagesGeneratorProvider"?      
> 	                                                                                               
> 	
> framework:demodata \[-p|--products PRODUCTS\] \[-c|--categories CATEGORIES\] \[-o|--orders ORDERS\] \[-m|--manufacturers MANUFACTURERS\] \[-cs|--customers CUSTOMERS\] \[--media MEDIA\] \[--properties PROPERTIES\] \[--users USERS\] \[-ps|--product-streams PRODUCT-STREAMS\] \[-mt|--mail-template MAIL-TEMPLATE\] \[-mhf|--mail-header-footer MAIL-HEADER-FOOTER\] \[-y|--with-media \[WITH-MEDIA\]\] \[-r|--reviews \[REVIEWS\]\] \[--attribute-sets ATTRIBUTE-SETS\] \[--product-attributes PRODUCT-ATTRIBUTES\] \[--manufacturer-attributes MANUFACTURER-ATTRIBUTES\] \[--order-attributes ORDER-ATTRIBUTES\] \[--customer-attributes CUSTOMER-ATTRIBUTES\] \[--media-attributes MEDIA-ATTRIBUTES\]
> 	
> 	
> Execution aborted, a subcommand failed!
> \`\`\`
> 
> when I try to modify "maltyxx/images-generator": "1.0.0" in composer.json, then complete dependency hell starts
> 
> \### How to reproduce
> 
> 1. enter: https://github.com/shopware/platform
> 2. console: git@github.com:shopware/platform.git
> 3. console: ./psh.phar docker:start
> 4. console: ./psh.phar docker:ssh
> 5. console (within container): ./psh.phar install \<- it fails
> 
> I'm running Debian Bullseye.

Laut Core ist die Zeitzone UTC fest im Core hinterlegt und kann nicht geändert werden. Eine Konfigurations Einstellung in der .env würde für den Anfang reichen.

---

<div class="post-metadata">

### Author: ![OlliZabal](https://avatars.discourse-cdn.com/v4/letter/o/ce73a5/32.png) [@OlliZabal](https://forum.shopware.com/u/OlliZabal)
#### Post date: [21. Oktober 2021 um 06:58 UTC](https://forum.shopware.com/t/uhrzeit-auf-utc-anstatt-europe-berlin/89938/6 "2021-10-21T06:58:02Z")

</div>

In der Bestellübersicht im Backend wird die jeweilige Bestellzeit aktuell ebenfalls falsch ausgegeben.  
Hier existiert ein Versatz von -2 Stunden.

Ich kann mich @Moorleiche nur anschließen - wäre schön, wenn es hier z.B. eine Option in der .env gäbe.

---

<div class="post-metadata">

### Author: ![Moorleiche](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@Moorleiche](https://forum.shopware.com/u/Moorleiche)
#### Post date: [21. Oktober 2021 um 08:22 UTC](https://forum.shopware.com/t/uhrzeit-auf-utc-anstatt-europe-berlin/89938/7 "2021-10-21T08:22:17Z")

</div>

@OlliZabal ab v6.4.5.1 gibts da was für den Admin-Bereich. Damit lässt sich arbeiten.

/admin#/sw/profile/index/general

![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/1/19d91a405999e8c69f551319f6c4c4415cd1c3e3.png)

---

<div class="post-metadata">

### Author: ![OlliZabal](https://avatars.discourse-cdn.com/v4/letter/o/ce73a5/32.png) [@OlliZabal](https://forum.shopware.com/u/OlliZabal)
#### Post date: [21. Oktober 2021 um 08:46 UTC](https://forum.shopware.com/t/uhrzeit-auf-utc-anstatt-europe-berlin/89938/8 "2021-10-21T08:46:55Z")

</div>

@Moorleiche danke Dir für den Hinweis - top! 👌

---

<div class="post-metadata">

### Author: ![pcs](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@pcs](https://forum.shopware.com/u/pcs)
#### Post date: [4. April 2024 um 16:26 UTC](https://forum.shopware.com/t/uhrzeit-auf-utc-anstatt-europe-berlin/89938/9 "2024-04-04T16:26:50Z")

</div>

Das Problem ist tatsächlich immer noch nicht gefixet
