<p>Good afternoon. I am working with docker containers and an application in spring boot, but I am having a problem with the time zone in the registry, I configured the time zone at the docker container level to be America/Caracas, however, when I start the container I am observing that there are 4 ahead in the time zone. Configure my time zone through kubernetes and the directory /etc/localtime --&gt; America/Caracas, as shown below:</p>
<p><strong>Dockerfile Images</strong></p>
<pre><code>FROM adoptopenjdk/openjdk11:alpine-jre
ADD FindAccountNumber-0.0.1-SNAPSHOT.jar /home/app.jar
ADD srvdevrma1.jks /etc/letsencrypt/srvdevrma1.jks
ADD tmt097.jks /etc/letsencrypt/tmt097.jks
ENTRYPOINT [&quot;java&quot;,&quot;-Djava.security.egd=file:/dev/./urandom&quot;,&quot;-jar&quot;,&quot;/home/app.jar&quot;]
</code></pre>
<p>Kubernetes Deploy:</p>
<pre><code>  - name: find-account-number-srvdevrma1
    image: find-account-number:v2
    imagePullPolicy: IfNotPresent
    volumeMounts:
    - mountPath: /etc/localtime
      name: tz-caracas     
    resources:
      limits:
        cpu: &quot;300m&quot;
        memory: &quot;350Mi&quot;
      requests:
        cpu: &quot;200m&quot;
        memory: &quot;300Mi&quot;
    ports:
    - containerPort: 8081

  volumes:  
    - name: tz-caracas
      hostPath:
        path: /usr/share/zoneinfo/America/Caracas   
</code></pre>
<p>Date in my container:</p>
<p><a href="https://i.stack.imgur.com/97IX9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/97IX9.png" alt="enter image description here" /></a></p>
<p>Registers in My Application Spring Boot</p>
<p><a href="https://i.stack.imgur.com/ifLxp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ifLxp.png" alt="enter image description here" /></a></p>
<p>What could be happening, should I configure something at the level of my spring boot application in code?</p>

Cesar Justo
<p>Try to add in your <strong>application.yml</strong> these lines:</p>
<pre><code>logging:
  pattern:
    dateformat: yyyy-MM-dd HH:mm:ss.SSS,America/Caracas
</code></pre>
<p>Or the equivalent configuration for the <strong>application.properties</strong></p>
<pre><code>logging.pattern.dateformat=yyyy-MM-dd HH:mm:ss.SSS,America/Caracas
</code></pre>
