Can I change time zone of ArangoDB's logs? - time

I live in Japan, so wanna change time zone of ArangoDB's logs from default to UTC+9:00.
Maybe I have to change somewhere of config files but I couldn't make sense.

The time zone is always GMT. You could open a feature request on github https://github.com/triAGENS/ArangoDB/issues maybe a config option can be added. But this needs to be checked.

Related

How to apply timezone to Log4j2 RollingFile?

There seems to be a bug in the past, hasn't it been fixed yet?
Even if a separate timezone is applied to my console log and file name, the actual rollover time is always the server time.
Is there any way to make this rollover time follow my timezone?

Heroku Scheduler Add On UTC Timezone cannot be changed

I have been working on a project that needs to complete a task at a certain time everyday. I am using the 'free' Heroku Scheduler Add-on and the task is completed, but the problem is that it is not completed in the exact time I set for it to be completed because the scheduler has a default UTC time zone that won't change even if the time zone for app is changed. Also, if there are daylight savings time changes (since it is a UTC time zone) it won't recognize that change and will do the task at the wrong time. Is there anyway to change the time zone to my desired one which would be in US/Eastern?
I already looked at Heroku Scheduler timezone? and it seems to be the online place with any information on it, but there are no instructions on how to fix the issue. Any help would be greatly appreciated.
Heroku Scheduler Task Setup Image
You can not change Heroku Scheduler Add-on time zone, only solution is to move the time checking logic to your app, for example you have to run it each hour, then in your app/command check if the time is the correct time, if it's not exist the app until current time meet your requirements

SonarQube: is it possible to change the time zone in the JVM parameters?

I have a machine that runs several different servers and it's in a specific time zone in Central Europe.
I need to run SonarQube (4.5.7) in UTC time.
I uncommented the following line in web/WEB-INF/config/environment.rb and restarted SonarQube but the server still shows the original time zone on the System Info page.
config.time_zone = 'UTC'
Should that be enough to change the time zone in SonarQube? Because that didn't really work.
Is there a way I can pass the user.timezone property to the JVM by editing the wrapper.conf file? Looks like it could work but it doesn't look like I'm supposed to touch that file.
Thanks.
Internal files, including web/**/*, must not be touched.
To change JVM timezone, you should edit conf/sonar.properties and add the value -Duser.timezone=Europe/Sofia to properties sonar.web.javaAdditionalOpts, sonar.ce.javaAdditionalOpts and sonar.search.javaAdditionalOpts.

What timezone is Heroku server using?

What timezone does Heroku's servers use? I'm trying to use node-cron and have the timezones line up, but I can't understand what timezone Heroku is using. Here's an example.
2015-11-30T09:16:45.874086+00:00
By default Heroku will return calls for current time in UTC.
You can manually set your app's time zone by adding a TZ environment variable via the config command. Keep in mind that you must use the tz database time zone format. For example, if you wanted to set your default time zone to US Central time you would use the following command (I'm assuming you have/use heroku toolbelt) :
heroku config:add TZ="America/Chicago"
EDIT: As treecoder points out in the comment below; the TZ ENV variable can be added via the Heroku dashboard if you prefer. Open your app's dashboard and navigate to the 'settings' tab, then under 'config variables' click the 'reveal config vars' button. You will then be able to add TZ = America/Chicago (or whatever timezone you need).
NOTE: The TZ environment variable does not affect logs. See the second note here.
Heroku is UTC by default. Open your app in heroku and go to app setting and click on Reveal Config Vars as in image
and you have to add var as in image
TZ=Asia/kolkata
Then it will work fine for INDIA time zone. you can choose your time zone from time-zone-list.
Heroku is UTC by default. You can change it by setting an env var to TZ=America/New_York or whatever, but I highly recommend you don't.
It's really good practice to keep all your server stuff (Heroku, CMS, etc.) in sync at UTC, and to only change this when displaying times clientside with something like Luxon.
Keeping this stuff in sync will save you a lot of headaches.
According to this, Heroku Help Log, you can change it with TZ variable. However, this never changes your log times, as they are always UTC.

Online application timestamped by local PC instead of Server

Is there a way to have my online application get the time and date from the user local machine instead of the server it resides on? The point is that there are users in different time zones and it will not make sense to have the standard UTC time stamp on their files. Thanks in advance fo ryour help.
Yes, with JavaScript new Date().

Resources