Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

DateTimeOffset String Formatting #81

Merged
merged 7 commits into from
Aug 15, 2017
Merged

DateTimeOffset String Formatting #81

merged 7 commits into from
Aug 15, 2017

Conversation

umaslakshmi
Copy link
Contributor

@umaslakshmi umaslakshmi commented Aug 15, 2017

DateTimeOffset does not have the ToShortDateString method so I changed it back to the ToString method with a format provided. This was causing an error on the Index page and Post page. Related to #50

@julietdaniel
Copy link
Contributor

What was the advantage of using the ToShortDateString method in the first place? If there's no significant advantage, I think we should go back to using the ToString method with a format provided. Or at least we could change back to that for now so that our code can run.
@jimmylewis , what do you think?

@umaslakshmi
Copy link
Contributor Author

@julietdaniel So before, we were using DateTime which had a ToShortDateString that took care of the formatting for us, but (I'm pretty sure) DateTimeOffset doesn't have this method, which is why we have to format it ourselves. But yeah exactly, we need to switch back if we even want it to run.

Copy link
Contributor

@julietdaniel julietdaniel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should merge this so that we can continue to run our code.

@umaslakshmi umaslakshmi merged commit cd0c9a4 into master Aug 15, 2017
@jimmylewis jimmylewis deleted the DateTimeOffset branch August 23, 2017 21:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants