Closed (works as designed)
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Entity property wrapper
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 May 2011 at 08:27 UTC
Updated:
21 May 2018 at 13:19 UTC
Jump to comment: Most recent
Comments
Comment #1
quazardous commented+1
Comment #2
quazardous commentedComment #3
sharonknieper commented+1....this aspect of Entity API makes it so the Search API module only accepts dates stored as datestamps (no iso dates) and it would be really helpful to see it resolved at the correct level.
Comment #4
fagoYes, but this isn't the correct level. Entity API documents dates have to be timestamps, so modules have to care about that, i.e. if they have to deal with other date-formats they need to convert them in the respective getter/setter callbacks.
That way, users of the API/property can rely on the fact that dates have to be passed in and are returned as timestamp.
Comment #5
mihai_brb commentedThis means you can't have a mysql date property and use metadata wrapper to set it's value, right?