Added postgres compatibility

- Modifications in Archives and Calendar panels

- Removed SUBSTRING(post.publicationDate, ...) in DQL requests because POSTGRES doesn't support this method on a datetime
- Added required treatment in PHP code for correct display of the Archives panel and the events of the Calendar panel