title: How to convert time values inside jinja code to the browser's local timezone when the page loads?
body: <p>I have a list of flask generated time values in this format: YYYY-DD-MM hh:mm:ss. These time values work as url links and are displayed in my html file using jinja2 like so:</p>
  
  <pre>
  {% for job in jobs %}
      &lt;a href=”{{ url_for(‘jobs/by_id’,job_id=job.job_id) }}"&gt;
      {{ job.finishtime }}              #this is the time value
      &lt;/a&gt;
  {% endfor %}
  </pre>
  
  <p>I want these time values to be automatically converted to the browser's local timezone. I tried using the flask-moment extension but after following all instructions and using <code>{{ moment(job.finishtime).format('MMMM Do YYYY, h:mm:ss a') }}</code>, the time disapppers from the html page when I load it. I tried other moment functions as well but keep getting errors.</p>
  
  <p>Is there a better way to make moment.js talk to my jinja code?</p>
  
  <p>I was hoping not to have to deal with python datetime.</p>