B: Missing methods for Mage 1.7

_getAttribute and _getStrftimeFormat, copied from Mage 1.9