Fix Spod Timestamp conversion

This fixed some PHP related Spod problems for me, i will ask franco to review this change.