View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003352 | OXID eShop (all versions) | 4.07. Source code, Test | public | 2011-11-03 08:26 | 2012-12-10 13:44 |
Reporter | csimon | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Fixed in Version | 4.7.1 / 5.0.1 revision 52468 | ||||
Summary | 0003352: oxarticles and oxtimestamp are always formatted dates | ||||
Description | In oxarticles::load oxid does the following: $this->oxarticles__oxinsert = new oxField(oxUtilsDate::getInstance()->formatDBDate( $this->oxarticles__oxinsert->value)); $this->oxarticles__oxtimestamp = new oxField(oxUtilsDate::getInstance()->formatDBDate( $this->oxarticles__oxtimestamp->value)); this is wrong, because it sets the field to a formatted date, but at least the rawValue should be an unfomatted raw value. IMHO there shouldn't date formatting at all, because the shop doesn't do that for other fields which could be formatted. Also this is kind of oxids ORM, it should always contain data equal to the data in the database. | ||||
Additional Information | This functionality should be put in special functions, like the formatting of prices is in "getFPrice". E.g. there should be some function named "getFInsertDate" or "getFTimestamp". | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||