Announcement

Symphony's issue tracker has been moved to Github.

Issues are displayed here for reference only and cannot be created or edited.

Browse

Closed#230: [2.0.7RC2] update/creation message and localisation

There is a strange issue in Symphony 2.0.7RC2 concerning relative times in update and creation messages. When I update a page with English language settings I get this message:

Page updated just now. Create another? View all Pages

When I switch to German the same page will return this:

Diese Seite wurde vor etwa 21101043 Stunden aktualisiert. Eine neue erstellen? Alle Seiten anzeigen

which translates to

Page updated about 21101043 hours ago. Create another? View all Pages

I didn’t even know Symphony existed in 398 – BC!

My guess is that something is mixed up with timezones so that the time given by the server is in the future from a JavaScript point of view. Not sure if that makes sense or why this occurs when switching languages (which shouldn’t change anything but the language).

Okay, there are two bugs. One is Symphony related, the other is a result of the Date and Time extension when used with German language settings.

Bug 1: Symphony

Line 64 of admin.js

else { return Symphony.Language.TIME_HOURS.replace('{$hours}', time); }

should be

else { return Symphony.Language.TIME_HOURS.replace('{$hours}', Math.floor(time / 60)); }

Bug 2: Date and Time

It seems like the German version of the dateJS library (which extends the native Date.parse function) is not able to process line 51 of admin.js:

var time = Date.parse($('abbr.timeago').attr('title'));

It returns null, if Date and Time is installed and the system language is set to German. It’s working just fine using English as system language.

This has been applied and will appear in the 2.0.8 release.

This issue is closed.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details