This article is part of the series
Upgrading to Drupal 9
Update: Since writing this article the EOL of Drupal 7 has been extended from November 2021 until November 2022. Your current website/platform is built on Drupal 7 and news has hit your ears about 7’s end of life (EOL). Maybe your website is a Drupal 8 website and you want to know what the future has in store for you. Good news is, you don’t have to do anything immediately, but it is definitely a...
Published in:
#Drupal Planet
#Migrate
#Drupal core
#Drupal 7
#Drupal 8
#Modern Drupal
#Twig
A client noticed the dates on their news articles were not being translated into the correct language. The name of the month would always appear in English, even though all the month names had themselves been translated and showed correctly elsewhere. The problem turned out to be down to the twig filter being used in the template to format the date. This is what we did have: ```twig {% set newsDate = node.getCreatedTime|date('j F Y')...
Published in:
#Drupal Planet
#Twig
#Theming
#templates
#dates