Hi, How stupidly gives you the replies. what am i asked and what you have sent. I just made request for new password because my account has been blocked unfortunately. And you are sending me rules and regulations of sending an email,is it necessary right now. reg....... Anil Karna ________________________________ From: "support-request@drupal.org" <support-request@drupal.org> To: support@drupal.org Sent: Wednesday, 25 July 2012 5:30 PM Subject: support Digest, Vol 115, Issue 36 Send support mailing list submissions to support@drupal.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.drupal.org/mailman/listinfo/support or, via email, send a message with subject or body 'help' to support-request@drupal.org You can reach the person managing the list at support-owner@drupal.org When replying, please edit your Subject line so it is more specific than "Re: Contents of support digest..." Today's Topics: 1. Entity exposed to view but 'date' type field are not present (Juraj Chlebec) 2. Unblock my account (Anil Reddy) ---------------------------------------------------------------------- Message: 1 Date: Tue, 24 Jul 2012 17:10:56 +0200 From: Juraj Chlebec <havran@gmail.com> Subject: [support] Entity exposed to view but 'date' type field are not present To: support@drupal.org Message-ID: <CAEXz2Pa+F3LdORCrWDggyVh3UpRiqsGtZ_O3=TMBfU=ZDPs43g@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" Hi, I have same problem as here: http://drupal.org/node/1021466#comment-4766902 Callbacks are only used by wrappers<http://drupal.org/node/1021466#comment-4766902> Posted by JvE <http://drupal.org/user/892998> on *July 22, 2011 at 10:18am* Note that the "getter callback" and "setter callback" functions are *only*used by Entity metadata wrappers. Not by entity_load or Views and such. You can not use these to convert a different timestamp format in a database to a timestamp for use with the 'date' type unless you specifically create a wrapper for each of your entity instances. I tried to get my (int)yyyymmdd values from the database to show up in Views as dates and mistakenly thought I could use the "getter callback" for the transformation. Example of when callback is and is not used: <?php $entity = entity_load('myentity', array(1)); print $entity->day; // this gives 20110721 (from the database) $item = entity_metadata_wrapper('myentity', $entity); print $item->day->value(); // this gives 1311206400 (from the "getter callback") ?> In Views my day shows up as "08/21/1970 - 19:18" ... so if someone can point me in the right direction to get my "days" as timestamps, I'm all ears. How can i use "getter callback" to convert field from database stored as 'date' to timestamp for using for view? Or is there other way how to achieve this goal? Juraj -- Juraj Chlebec aka Havran http://www.svoji.sk