Goto Settings/Languages set you date format that you want. I assume you code is corrrect to use the server settings. Something like: [[ formatLang(time.strftime('%Y-%m-%d %I:%M:%S %p'), date_time = True) ]]