Answers.Body: <p><a href="http://php.net/manual/en/function.date.php" rel="nofollow">You are using the wrong variables</a>.</p>
  
  <p>The <code>10</code> is there because it means <code>October</code> not <code>10 minutes</code>.</p>
  
  <p>You have to use <code>| date("g:ia”)</code>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-20T13:42:14.900Z
Answers.LastActivityDate: 2016-10-24T07:48:07.730Z
Answers.LastEditDate: 2016-10-24T07:48:07.730Z
Answers.UserDisplayName: KSPR
Body: <p>I've having an issue where a Date/Time field (time only) is outputting the time in the front-end template with an extra 10 minutes.</p>
  
  <p>In my template I'm using <code>entry.startTime|date("g:ma”)</code>.</p>
  
  <p>In the DB the <code>field_startTime</code> for the entry is <code>2016-10-15 16:00:00</code>, but on the front-end I’m seeing 4:10pm.</p>
  
  <p>Could anyone tell me where are these extra 10 minutes coming from, please?</p>
  
  <p>This is happening both locally and on the dev server, using Craft CMS 2.6.2949</p>
  
Tags: <entries><datetime>
Title: Date/Time field outputting time with additional minutes
ThreadText: # Date/Time field outputting time with additional minutes
  
  (Asked by: username_0 on 2016-10-20)
  
  I've having an issue where a Date/Time field (time only) is outputting the time in the front-end template with an extra 10 minutes.
  
  In my template I'm using `entry.startTime|date("g:ma”)`.
  
  In the DB the `field_startTime` for the entry is `2016-10-15 16:00:00`, but on the front-end I’m seeing 4:10pm.
  
  Could anyone tell me where are these extra 10 minutes coming from, please?
  
  This is happening both locally and on the dev server, using Craft CMS 2.6.2949
  
  **Tags:** entries, datetime
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-10-20. Score: 6 | Accepted answer
  
  [You are using the wrong variables](http://php.net/manual/en/function.date.php).
  
  The `10` is there because it means `October` not `10 minutes`.
  
  You have to use `| date("g:ia”)`.
  
  
  ---
  
  