← Back to team overview

mahara-contributors team mailing list archive

[Bug 1837631] Re: Time date translation

 

** Changed in: mahara
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1837631

Title:
  Time date translation

Status in Mahara:
  Fix Committed

Bug description:
  Version : 19.04.0 and 19.04.1, also present on latest version of git
  https://github.com/MaharaProject/mahara

  
  When seeing a timeline (view/versioning.php?view=ID), even if my site is french I see date in english.
  Ex.: 23 july instead of 23 juillet.

  Tracking code down, the problem comes from file
  /view/versioning.json.php

  On line 45 we have :

  "taskShortDate" => date('j F', strtotime($value->ctime)),

  That should be :

  "taskShortDate" => strftime('%e %B', strtotime($value->ctime)),

  So this takes account of current language, not language set on php
  config.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1837631/+subscriptions


References