Skip to content

Commit

Permalink
Default twig timezone (#56)
Browse files Browse the repository at this point in the history
* Ignored the .idea folder

* Added a default value for the twig timezone. It can be set in the application by an environment variable if required.

* Changed the name of the environment variable to be more consistent with all others

* Updated the docs to illustrate how to set the default timezone
  • Loading branch information
stetodd authored and adamquaile committed Jun 24, 2019
1 parent d730486 commit 4d1584c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -8,3 +8,4 @@
/tests/data/enveloper_test.sqlite
/docker-compose.override.yml
docs/api/node_modules
.idea
3 changes: 3 additions & 0 deletions app/config/config.yml
Expand Up @@ -24,6 +24,7 @@ parameters:
pipeprint_url: '%env(ENVELOPER_PIPEPRINT_URL)%'
env(ENVELOPER_PIPEPRINT_URL): ~
env(ENVELOPER_QUEUE_DSN): 'spool://memory'
env(ENVELOPER_DEFAULT_TIMEZONE): 'UTC'


monolog:
Expand Down Expand Up @@ -96,3 +97,5 @@ twig:
debug: '%kernel.debug%'
strict_variables: '%kernel.debug%'
exception_controller: AppBundle:Error:showException
date:
timezone: "%env(ENVELOPER_DEFAULT_TIMEZONE)%"
1 change: 1 addition & 0 deletions docs/01-getting-started.md
Expand Up @@ -23,6 +23,7 @@ Let's assume you've created a folder called `enveloper-data`. Run this to start
-e ENVELOPER_DEFAULT_SENDER_EMAIL=noreply@example.com \
-e ENVELOPER_DEFAULT_SENDER_NAME=Your\ App \
-e ENVELOPER_DB_DSN=sqlite:////app/data/enveloper.sqlite \
-e ENVELOPER_DEFAULT_TIMEZONE=Europe/London \
-p 8080:8080 \
outstack/enveloper

Expand Down

0 comments on commit 4d1584c

Please sign in to comment.