bugSavane - Bugs: bug #4570, Bad strftime in features_boxes.php

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #4570: Bad strftime in features_boxes.php

Submitted by:  Omid Mottaghi <omidmottaghi>
Submitted on:  Sun 23 Oct 2005 07:53:11 AM UTC  
 
Category: Web FrontendStatus: Fixed
Severity: 3 - NormalPriority: C - Normal
Assigned to: NoneOpen/Closed: Closed
Release: Planned Release: 1.3
Reproducibility: NonePrivacy: Public

Mon 21 Nov 2005 04:21:54 PM UTC, comment #3:

This is done.

As part of the work done by Tobias, there is now a function format_date that will be able to handle such problems.

Mathieu Roy <yeupou>
Project Administrator
Sun 23 Oct 2005 11:22:10 AM UTC, comment #2:

It can localize date but CANNOT localize calendar.
for example, in Jalali calendar we are in year 1384, but in Gregorian calendar we are in year 2005, and in most OSes that used to install Savane, they don't support Jalali calendar. (eg. linux, windows,...)

at least, please define an internal function, like format_strftime, to CAN support other calendars.

Regards.

Omid Mottaghi <omidmottaghi>
Sun 23 Oct 2005 08:16:31 AM UTC, comment #1:

There are practical reasons that make problematic using format_date here.

# It would be best to have only Month + Day, but php locale
# implementations cant do that, apparently. Feel free to
# improve.
$return .= \'<div class=\"\'.utils_get_alt_row_color($j).\'\"><font class=\"smaller\">  - <a href=\"\'.$base_url.$GLOBALS[\'sys_home\'].\"projects/$row_newproj[unix_group_name]/\\\">\"
. $row_newproj[group_name].\'</a><font class=\"smaller\">, \'.strftime(\'%x\',$row_newproj[\'register_time\']).\'</font></font></div>\';
$j++;

We talk about the boxes on the right of the main page, and having format_date is not an option there, as it creates way too long string.

%x is supposed to be localized. So it should work properly.

Mathieu Roy <yeupou>
Project Administrator
Sun 23 Oct 2005 07:53:11 AM UTC, original submission:

There is a little bug in localizing date on include\features_boxes.php at line 157.
"strftime" should replace with "format_date".

Regards.

Omid Mottaghi <omidmottaghi>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by yeupou (Updated the item)
  • -unavailable- added by omidmottaghi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 21 Nov 2005 04:21:54 PM UTCyeupouSeverity1 - Wish=>3 - Normal
      StatusNeed Info=>Fixed
      Planned Release=>1.3
      Open/Closed-Automatic update due to transitions settings-=>Closed
    Sun 23 Oct 2005 08:16:31 AM UTCyeupouStatusNone=>Need Info
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup