Author Topic: Problem changing time_format in config.inc.php  (Read 1119 times)

Offline FutureX

  • Newbie
  • *
  • Posts: 1
Problem changing time_format in config.inc.php
« on: March 01, 2022, 04:45:13 PM »
Im on 1.5.2 on Ubuntu 20.04.4  When I add a time_format or date_format option I just get the "Ooops..." message.  Even if it's the same as the default: $config['time_format'] = ‘H:i’;  if I comment out that line it works fine.

Thanks!
FutureX




Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
Re: Problem changing time_format in config.inc.php
« Reply #1 on: March 02, 2022, 04:27:15 AM »
When you get the Ooops message what does it say in the Roundcube error log? If what you pasted in your post is accurate then its a typo.

Code: [Select]
$config['time_format'] = ‘H:i’; // contains smart quotes
$config['time_format'] = 'H:i'; // no smart quotes

you cannot use smart quotes to enclose strings in PHP.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…