interpret dates as longs
don't use mysql to convert dates
Merge pull request #1268 from marcel-blonk/PLFM-2677

Plfm 2677