Outdated “current” year
See original GitHub issueBug report
What’s wrong
Some providers return “current” dates from a few years ago, because they are hardwired to the “current” year from those times, such as:
mimesis.Datetime().week_date()
mimesis.Datetime().date()
mimesis.Development().version(calver=True)
PolandSpecProvider().pesel()
How is that should be
Having a global now
would break a lot of things, because with the same seed
, we would get different results at each run.
Then maybe changing mimesis’ versioning to calver and do such updates of default year with every major version? This would allow adding methods like birthdate
to the Person
provider as well.
System information
Not relevant.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
npm-outdated
Check for outdated packages. ... Use --all to find all outdated meta-dependencies as well. ... Package Current Wanted Latest Location Depended by.
Read more >The “outdated sources” myth - APA Style
We recommend citing reliable, primary sources with the most current information whenever possible. What it means to be “timely” varies ...
Read more >How can I tell whether information on a web page is current or ...
Use your judgment to decide whether or not a source is current enough for your needs. ... It will usually include a day,...
Read more >5 Reasons You Should Remove Outdated Content (And One ...
They get excited, tell their doctor about the study, only to have them cite a study from the current year debunking that treatment....
Read more >18 things that kids 10 years from now won't even recognize
Here are a few things that may be rare 10 years from now. ... In fact, many current generation computers don't even include...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It looks good. And it will return the same value within one year, which is probably okay for your users.
I think it will work with seed as well because
date().year
will always return the same value.