Closed garcipat closed 12 months ago
Yes! Great work!
"The SystemClock is static and this is problematic" is an understatement! Is really making things so complicated.
@bchavez I also don't know if on GitHub people resolve the covnersations after an issue has been solved or I wait untilf the person mentioning it is resolves it himself. I started contributing just recently.
@bchavez I also don't know if on GitHub people resolve the covnersations after an issue has been solved or I wait untilf the person mentioning it is resolves it himself. I started contributing just recently.
If it's clear that is has been fixed, it's imo preferred that you press resolve:)
@bchavez I also don't know if on GitHub people resolve the covnersations after an issue has been solved or I wait untilf the person mentioning it is resolves it himself. I started contributing just recently.
If it's clear that is has been fixed, it's imo preferred that you press resolve:)
Thanks for the clarification :)
Hello there; hope your days are going well.
Upon further review, I think there's a bug with this PR because the changes missed the
Date.net60.cs
.NET 6 specificTimeOnly
/DateOnly
methods which still read fromSystemClock()
that should have read fromGetDate()
.Alternatively, I put together PR #500 which fixes the problem and also plumbs the local time ref to
Faker<T>
and other places where it's probably important API / consistency / ergonomic-wise.Please post some thoughts on #500.
And for this PR I'm marking this PR as a review block because of the missed
SystemClock()
bugs in theDate.net60.cs
file and until we discuss more.Let me know your thoughts. Thanks.
Good catch. I will check where the SystemClock is used in egneral and observe if there is any other place I maybe missed.
I renamed the GetDate to Now and used this one everywhere SystemClock was used. The reference date will always be respected then, also in the .net6 methods.
Let me know if you don't like the exposed method. Its also possible to make it private for the partial extensions, but not for the population of the "Person"
@garcipat @bchavez Thanks for all the work!
I'm now a bit confused. What is the latest PR of this feature? This one or #500? Or aren't those the same?
@garcipat @bchavez Thanks for all the work!
I'm now a bit confused. What is the latest PR of this feature? This one or #500? Or aren't those the same?
@304NotModified He extended on my idea and created his own branch in the main repo. I now don't know what to do with this one. I can't help or do anything now 😅
Should I close the PR?
I really want to help further but can't now.
@garcipat @304NotModified . No worries, I'll make a decision as soon as I review the most recent changes in this 492 PR.
@garcipat @304NotModified . No worries, I'll make a decision as soon as I review the most recent changes in this 492 PR.
Alright. Thank you.
Or tell me if. Should take over your proposal and add the tests for the new cases.
Alright, I think we'll go with PR #500 and put our energies there now that things are starting to take shape.
Alright, I think we'll go with PR #500 and put our energies there now that things are starting to take shape.
But I will then take over to #500 what you already did there. Naming and such.
The SystemClock is static and this is problematic if you have different reference dates. I wanted to provide the option to set the reference date on a faker as with the localization. The default is like before, nothing changes, therefore there should be no breaking change.
Example: