Answers.Body: <p>Is this a custom template global from a plugin or is it a field on a Craft global set, because those you usually access with <code>{{ myGlobalSet.endDate }}</code>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-14T23:10:16.003Z
Answers.LastActivityDate: 2015-10-14T23:10:16.003Z
Answers.UserDisplayName: carlcs
Body: <p>This one is new to me. I've got the timezone set in my admin panel to Denver but I get this this error when I try using a global in my template...</p>
  
  <pre><code>DateTime::__construct(): Failed to parse time string (End Date) at position 0 (E): The timezone could not be found in the database
  </code></pre>
  
  <p>Here is my code in the template</p>
  
  <pre><code>{{ endDate | date("U") }}
  </code></pre>
  
  <p>My global is called End Date (endDate) and is using a date field type</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-12T17:31:55.013Z
Comments.Text: What happens when you do `{{ endDate }}`? Is this a custom template global from a plugin or is it a field on a Craft global set, because those you usually access with `{{ myGlobalSet.endDate }}`.
Comments.UserDisplayName: carlcs
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-14T16:14:46.917Z
Comments.Text: Hey @brunam, did you solve this in the meantime?
Comments.UserDisplayName: carlcs
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-14T19:23:18.640Z
Comments.Text: your suggestion was correct actually. forget the the myGlobalSet part
Comments.UserDisplayName: brunam
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-14T23:11:44.607Z
Comments.Text: Good to see you solved this. Added it as an answer.
Comments.UserDisplayName: carlcs
Tags: <datetime>
Title: The timezone could not be found in the database
ThreadText: # The timezone could not be found in the database
  
  (Asked by: username_0 on 2015-10-12)
  
  This one is new to me. I've got the timezone set in my admin panel to Denver but I get this this error when I try using a global in my template...
  
  ```
  DateTime::__construct(): Failed to parse time string (End Date) at position 0 (E): The timezone could not be found in the database
  
  ```
  
  Here is my code in the template
  
  ```
  {{ endDate | date("U") }}
  
  ```
  
  My global is called End Date (endDate) and is using a date field type
  
  **Tags:** datetime
  
  > **Comments:**
  > **username_1**: What happens when you do `{{ endDate }}`? Is this a custom template global from a plugin or is it a field on a Craft global set, because those you usually access with `{{ myGlobalSet.endDate }}`.  
  > **username_1**: Hey @username_0, did you solve this in the meantime?  
  > **username_0**: your suggestion was correct actually. forget the the myGlobalSet part  
  > **username_1**: Good to see you solved this. Added it as an answer.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-10-14. Score: 2 | Accepted answer
  
  Is this a custom template global from a plugin or is it a field on a Craft global set, because those you usually access with `{{ myGlobalSet.endDate }}`.
  
  
  ---
  
  