update-template: use post.get_publication_date() for sorting

This does a nice ordered fallback for missing date fields
Assume system timezone for unspecified dates