melicertes / csp

The Cyber Security Platform MeliCERTes is part of the European Strategy for Cyber Security. MeliCERTes is a network for establishing confidence and trust among the national Computer Security Incident Response Teams (CSIRTs) of the Member States and for promoting swift and effective operational cooperation.
Other
30 stars 7 forks source link

Timezone needs to be adjusted in videoconf administration #47

Closed thanosa75 closed 5 years ago

thanosa75 commented 5 years ago

The videoconf admin application has time by default to Europe/Athens. It can be confusing for CSPs in other timezones.

thanosa75 commented 5 years ago

Workaround Edit the local 'docker-compose.yml' file (it is present in the installation in folder /opt/csp/modules/vcb{moduleId}/ folder), looking for lines that contain "command:"

Edit the line, adding the following before the -jar option, such as:

Previous line: command: java -Xmx512m -Dspring.profiles.active=docker -jar server.jar

Corrected line (for CET timezone): command: java -Xmx512m -Devent.show.timezone.default=CET -Dspring.profiles.active=docker -jar server.jar

When changes are complete, you will need to restart VCB (faster) or the complete CSP (slower). The VCB can be restarted with:

docker-compose up -d

Notes:

  1. yml files have spaces for separators, DO NOT modify the spaces before "command".
  2. the "command" line is a single line not multi even if it appears as such here.
  3. a list of timezones (for java 6 onwards) is provided here.
ghost commented 5 years ago

Workaround Edit the local 'docker-compose.yml' file, looking for lines that contain "command:"

Which one?

Any other steps needed afterwards?

thanosa75 commented 5 years ago

Clarification added.

ghost commented 5 years ago

Edit the line, adding the following before the -jar option, such as:

The line in the vcb-admin or vcb-teleconf section?

thanosa75 commented 5 years ago

Hello,

Sorry for not being clear. Both should be modified.

On 29 Jul 2019, at 13:50, Wagner notifications@github.com wrote:

Edit the line, adding the following before the -jar option, such as:

The line in the vcb-admin or vcb-teleconf section?

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/melicertes/csp/issues/47?email_source=notifications&email_token=AAJ7HV5OABUC35J2GHYHQBLQB3DPRA5CNFSM4IHCDQ6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3AKYSI#issuecomment-515943497, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJ7HVZ5ZCTE7Y6ITRK4QP3QB3DPRANCNFSM4IHCDQ6A.

ghost commented 5 years ago

I have set it to "Europe/Vienna" now. But the UI shows "CET", not "CEST".

thanosa75 commented 5 years ago

Hi,

changing it in our debug system, correctly indicates Europe/Vienna. Have you restarted?

image

And my changes as below:

/opt/csp/modules/vcb947715307c7b]# cat docker-compose.yml |grep command
    command: sh -c "sleep 10 && java -Xmx512m -Devent.show.timezone.default=Europe/Vienna -Dspring.profiles.active=docker -jar server.jar"
    command: java -Xmx512m -Devent.show.timezone.default=Europe/Vienna -Dspring.profiles.active=docker -jar server.jar
ghost commented 5 years ago

I have found the issue in the docker-compose.yml file. Works now