-
Notifications
You must be signed in to change notification settings - Fork 979
Humanize for DateTime? defaulting to "never" #493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
"Mono.Cecil": "0.9.6.1", | ||
"xunit": "2.1.0", | ||
"xunit.runner.visualstudio": "2.1.0" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rdoubleui can you revert the changes to this file, they are irrelevant to the feature, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, of course.
This reverts commit 0909851.
…g the desired behaviour right out of the extension method.
@@ -1028,12 +1030,12 @@ namespace Humanizer.DateTimeHumanizeStrategy | |||
} | |||
public class PrecisionDateTimeHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.IDateTimeHumanizeStrategy | |||
{ | |||
public PrecisionDateTimeHumanizeStrategy(double precision = 0.75) { } | |||
public PrecisionDateTimeHumanizeStrategy(double precision = 0,75) { } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is still no upstream version for this problem? :-( This line should be reverted, and 1038 also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was fast :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. The PR is still pending.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes :) Just saw the trouble within diff in that moment.
@@ -34,6 +40,6 @@ public interface IFormatter | |||
/// <param name="timeUnit"></param> | |||
/// <param name="unit"></param> | |||
/// <returns></returns> | |||
string TimeSpanHumanize(TimeUnit timeUnit, int unit); | |||
string TimeSpanHumanize(TimeUnit timeUnit, int unit); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this extra whitespace at the end of the line.
LGTM |
👍 |
Humanize for DateTime? defaulting to "never"
Need to localize for supported languages |
@hazzik Yes, should this be another issue? How's this to be addressed? |
@rdoubleui another issue. How we will handle it? - not sure yet. |
In continuation to #479 I added the
Humanize
overload forDateTime?
.