VenusInterns / BlogTemplate

MIT License
208 stars 38 forks source link

Use UTC instead of time zone offset and replace post sorting method #136

Closed lucasisaza closed 7 years ago

lucasisaza commented 7 years ago

So that the time can be consistent with the server's clock, use UTC times designed for sorting instead of time zone offset.

There is a format for rendering UTC times that is designed for sorting (sorting the posts). You can do it with post.PubDate.UtcDateTime.ToString("S").Replace(':','-')