Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing Timezone parameters #390

Closed
javexed opened this issue Jul 23, 2015 · 10 comments
Closed

Changing Timezone parameters #390

javexed opened this issue Jul 23, 2015 · 10 comments

Comments

@javexed
Copy link

javexed commented Jul 23, 2015

Changing timezone parameters was rather difficult. If you do it wrong, the gitlab container won't come up and there isn't much of an error. Could be mitigated with a bit better documentation. For example, to convert to Eastern standard time:
TZ=Asia/Kolkata -> TZ=America/New_York
GITLAB_TIMEZONE=Kolkata -> GITLAB_TIMEZONE=EST

@LaurensRietveld
Copy link

Some more info: when you use a slash in the GITLAB_TIMEZONE, you'll get the following error:
sed: -e expression #1, char 30: unknown option to 's'

Problem occurs because the slash isnt escaped before passing it on to sed. No problem with me to use another timezone notation, but would be good to document about allowed timezone notations (took some time locating the error)

@sameersbn
Copy link
Owner

@LaurensRietveld
Copy link

How I interpreted that page was that Europe/Amsterdam was allowed (Amsterdam as well, which is mapped to Europe/Amsterdam).
Is that correct? Because the issue here is with the Europe/Amsterdam TZ definition

@sameersbn
Copy link
Owner

You should use the mapping key. So if you want to set the rails timezone as Europe/Amsterdam, then according to http://api.rubyonrails.org/classes/ActiveSupport/TimeZone.html you should set GITLAB_TIMEZONE=Amsterdam

@umputun
Copy link
Contributor

umputun commented Oct 25, 2015

For central time i have found "Central Time (US & Canada)" => "America/Chicago". Using the key leads to an error: "ArgumentError: Invalid Timezone: "Central Time (US {{GITLAB_TIMEZONE}} Canada)"

@michaelryanmcneill
Copy link

I'm having basically the same issue as @umputun. I'm trying to use Eastern Time (US & Canada) which bombs out on creation with the error: ArgumentError: Invalid Timezone: Eastern Time (US {{GITLAB_TIMEZONE}} Canada) I was able to get past this by escaping the special characters: GITLAB_TIMEZONE=Eastern Time \(US \& Canada\)

@sameersbn
Copy link
Owner

The & character is now automatically escaped. If you have manually escaped the & character, then you need to remove it in versions > 8.1.x.

@k-dahl
Copy link

k-dahl commented Dec 7, 2015

Ran into this today - may be something worth adding to the 'Upgrade' portion of the readme?

@sameersbn
Copy link
Owner

these changes are logged in #39

@k-dahl
Copy link

k-dahl commented Dec 10, 2015

@sameersbn Awesome, I hadn't seen that - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants