I’m having trouble formatting date strings in some templates.
I’m trying to use strftime to get article dates formatted for my blog. It works fine when previewing, but it causes the build process to fail with an “undefined method” error.
It’s fine if I leave strftime in the example blog index page, but it kills the build if I use it in a nested template to format page data. For example: <%= current_page.data.date.strftime(’%B %e, %Y’) %>
Am I doing something wrong here? Thanks for helping out a noob.