AnsweredAssumed Answered

Did date formatting change from Sugar 7 to 8?

Question asked by Chad Hutchins on Aug 29, 2018
Latest reply on Aug 29, 2018 by Chad Hutchins

In Sugar 7 when you would retrieve a bean and look at a date field it would already be formatted to the User's date format settings. Example:

 

$bean = BeanFactory::getBean('Contacts','1234-1234-1234-1234');
echo $bean->date_created; // <<< this would be already be formatted to the user settings

But if you do the same thing in Sugar 8, $bean->date_created will return the raw date value directly from the database. It will not be formatted.

 

Did something change in the order of the formatters? Is anyone else seeing this?

 

Thanks!

Outcomes