You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/12/14 11:40:20 UTC

[GitHub] [apisix] spacewander commented on issue #3039: request help: question about time zone

spacewander commented on issue #3039:
URL: https://github.com/apache/apisix/issues/3039#issuecomment-744383657


   ```
   hostPath:
               path: /etc/localtime
               type: File
             name: localtime
   ```
   
   This part of code mounts the host's /etc/localtime to the pod. Quoted from the doc:
   > If the TZ environment variable does not have a value, the operation chooses a time zone by default. In the GNU C Library, the default time zone is like the specification ‘TZ=:/etc/localtime’ (or ‘TZ=:/usr/local/etc/localtime’, depending on how the GNU C Library was configured; see Installation). Other C libraries use their own rule for choosing the default time zone, so there is little we can say about them.
   
   https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html
   
   ```
   containers:
           - env:
               - name: TZ
                 value: "Asia/Shanghai"
   ```
   I think we should remove this, since it is bad idea to hard code timezone. 
   @membphis @gxthrj What about your guys' opinion?
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org