Fixed incorrect post sorting
Fixed date handling