B: Missing methods for Mage 1.7

_getAttribute and _getStrftimeFormat, copied from Mage 1.9
Merge branch 'master' into develop