phpGroupWare - Bugs: bug #8315, Function convertDate in...
You are not allowed to post comments on this tracker with your current authentication level.
bug #8315: Function convertDate in class.datetime.inc.php does not work with the d-M-Y format that can selected in Preferences
Submitter: | Alan Oshry <scibe> | ||
Submitted: | Fri 26 Mar 2004 08:43:50 PM UTC | ||
Category: | API - phpGroupware API | Item Group: | 0.9.16.000 release |
Severity: | 3 - Normal | Priority: | 7 - High |
Status: | Fixed | Privacy: | Public |
Assigned to: | skwashd | Open/Closed: | Closed |
Component Version: | SVN | Operating System: | MS Windows |
Reproducibility: | Every Time | Planned Release: | None |
Fixed Release: |
Jump to the original submission
Wed 31 Mar 2004 10:50:06 PM UTC, comment #7: |
Alan Oshry <scibe> |
Tue 30 Mar 2004 06:28:44 AM UTC, comment #6: I am about to upload a patch, scibe if you can test it, then I will commit it.
|
Dave Hall <skwashd> |
Sun 28 Mar 2004 08:17:35 PM UTC, comment #5: I had this isssue in another app. I know a fix for it. I will look into fixing it. |
Dave Hall <skwashd> |
Sat 27 Mar 2004 02:20:23 AM UTC, comment #4: The month name is not the issue, the code assembles the new date format by using the key, not the value. What makes it break is if any of the keys do not match the output keys. A developer using this function would need to know the format coming in, to prepare a proper output format that will work correctly. Since d-M-Y is the only dateformat preference that is unlike the others with the naming of the keys, it makes it difficult to know in advance to look for a d,m,Y combination, or a d,M,Y combination without editing the function itself to handle either one. |
Anonymous |
Sat 27 Mar 2004 01:47:04 AM UTC, comment #3: The month name is not the issue, the code assembles the new date format by using the key, not the value. What makes it break is if any of the keys do not match the output keys. A developer using this function would need to know the format coming in, to prepare a proper output format that will work correctly. Since d-M-Y is the only dateformat preference that is unlike the others with the naming of the keys, it makes it difficult to know in advance to look for a d,m,Y combination, or a d,M,Y combination without editing the function itself to handle either one. |
Anonymous |
Fri 26 Mar 2004 10:35:44 PM UTC, comment #2: Assuming that the month name is language dependend this is not trivial. Best solution would be to parse the given date into a timestamp and then return the new string by converting the timestamp (with strftime() for example).
|
Kai Hofmann <powerstat> |
Fri 26 Mar 2004 08:53:15 PM UTC, comment #1: This might be something for Powerstat to fix ...
|
Dr. Christian Böttger <cboettger> |
Fri 26 Mar 2004 08:43:50 PM UTC, original submission:
The function works like this, and returns the new formatted date:
|
Alan Oshry <scibe> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 9 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2004-05-01 | skwashd | Status | Works For Me | Fixed | |
Open/Closed | Open | Closed | |||
2004-03-30 | skwashd | Attached File | - | Added class.datetime_fix.diff, #1142 | |
2004-03-30 | skwashd | Attached File | #1141 | Removed | |
2004-03-30 | skwashd | Status | None | Works For Me | |
Attached File | - | Added class.datetime_fix.diff, #1141 | |||
2004-03-26 | cboettger | Priority | 5 - Normal | 7 - High | |
Assigned to | None | skwashd | |||
Carbon-Copy | - | Added khofmann --AT-- probusiness --DOT-- de |
Powered by Savane 3.13-d3ae.
Corresponding source code
Thanks skwashd!, this fixed the problem.