AtlasOfLivingAustralia / travis-build-configuration

travis-ci.org build configuration files shared/re-used among ALA projects
5 stars 8 forks source link

The machine where Nexus repo is hosted has the wrong date or the wrong locale #6

Closed aruizca closed 6 years ago

mbohun commented 9 years ago

@aruizca could you be more specific?

bash-3.2$ slogin nexus.ala.org.au
hor22n@nexus.ala.org.au's password: 
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-39-generic x86_64)
 * Documentation:  https://help.ubuntu.com/
Last login: Fri Nov 21 10:45:46 2014 from 152.83.199.216

hor22n@ala-wonder:~$ date
Fri Nov 21 10:47:08 AEDT 2014

hor22n@ala-wonder:~$ locale
LANG=en_AU
LANGUAGE=en_AU:en
LC_CTYPE="en_AU"
LC_NUMERIC="en_AU"
LC_TIME="en_AU"
LC_COLLATE="en_AU"
LC_MONETARY="en_AU"
LC_MESSAGES="en_AU"
LC_PAPER="en_AU"
LC_NAME="en_AU"
LC_ADDRESS="en_AU"
LC_TELEPHONE="en_AU"
LC_MEASUREMENT="en_AU"
LC_IDENTIFICATION="en_AU"
LC_ALL=
aruizca commented 9 years ago

Uhmmm, this morning I deployed a snapshot and the timestamp was still for the 20th of September 2014. Maybe is nexus that has the wrong timezone.

aruizca commented 9 years ago

Nexus is correct. Could it be TravisCI, Since the build is generated there

mbohun commented 9 years ago

OK - as expected :smile: on travis-ci.org we have to be explicit about our timestamps/dates, for example: https://github.com/AtlasOfLivingAustralia/travis-build-configuration/blob/master/bin/generate-github-travis-build-summary-with-grails.sh#L3

TIMESTAMP_START=`TZ='Australia/Canberra' date "+%Y-%m-%d %H:%M:%S"`

before adding the TZ='Australia/Canberra' the generated build status summary table was showing the local timestamps of where ever is travis-ci.org located (San Fran? i guess)

aruizca commented 9 years ago

This worked for the dashboard project:

before_install:
- export TZ=Australia/Canberra
- date

Please apply that to the build templates. Cheers,

mbohun commented 6 years ago

fixed long time ago, forgot to close.