bnhf / openvpn-admin-plus

Docker-based web interface (with golang backend) for monitoring and admin of an OpenVPN TAP/TUN server setup with PiVPN or other OpenVPN server installations. This project has been renamed from pivpn-tap-web-ui, to reflect its new broader scope.
MIT License
143 stars 23 forks source link

SERVER TIME #6

Closed karabelnikov closed 1 year ago

karabelnikov commented 1 year ago

@bnhf

Greetings! I discovered an interesting feature. The monitoring page displays the time in UTC format, regardless of the time zone and time on the server. The time on my server is taking into account GMT+05, but it stubbornly shows UTC on the monitoring page. How do I achieve that the time on the server shows taking into account my time zone or server time?

Снимок экрана 2022-12-05 в 12 36 49

bnhf commented 1 year ago

@karabelnikov

A few options: If you used the Github method for creating your stack described in the README, then add a TZ environment variable, along with the appropriate timezone as the value, and redeploy. If you've created the stack locally using a custom compose, then add a - TZ= followed by your timezone. Final option is to add TZ=${TZ} to your custom compose and then add the environment variable to your Portainer variable list as described in the first sentence above.