Skip to content

Commit

Permalink
Merge pull request #100 from oncletom/fix/timezone
Browse files Browse the repository at this point in the history
Setup default timezone to Europe/Paris
  • Loading branch information
Timothee Gosselin authored Apr 26, 2018
2 parents 5d5e9ab + 95201f5 commit 6525a69
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
publish = "dist"
[build.environment]
YARN_VERSION = "1.3.2"
TZ = "Europe/Paris"

[context.deploy-preview]
command = "yarn build-preview"
Expand Down
3 changes: 3 additions & 0 deletions site/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@

DefaultContentLanguage: fr
languageCode: fr-FR
defaultContentLanguageInSubdir: false

address: "1 Rue de Croix de Luizet 69100 Villeurbanne"
title: La MYNE
picto1: "/img/picto-house.png"
Expand Down
2 changes: 1 addition & 1 deletion site/layouts/partials/idcard.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h2>Quand?</h2>
{{$start := time .Params.start}}
{{$end := time .Params.end}}
<p>le {{ $start.Day }} {{ $start.Month }} {{ $start.Year }}</p>
<p>de {{ $start.Hour }} : {{ $start.Minute }} a {{ $end.Hour }}:{{ $end.Minute }}</p>
<p>de {{ printf "%02d:%02d" $start.Hour $start.Minute }} à {{ printf "%02d:%02d" $end.Hour $end.Minute }}</p>
</div>
{{ end }}

Expand Down

0 comments on commit 6525a69

Please sign in to comment.