-
Notifications
You must be signed in to change notification settings - Fork 30
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
Random time #28
Comments
Hm seems reasonable....don't have much time to manage this repo right now. :/ |
Hm, |
Thanks a lot. On 17 November 2016 at 23:17, Vinai Kopp [email protected] wrote:
Mr. Đinh Thanh Tài Former Secretary of IU IT Youth UnionPhone number: +84 934331161 |
I have tried to change your source code, and it works for now. $randomTimeAgo = rand(1, 24 * 60 * 60); //No 2 years anymore, just 1 day On 18 November 2016 at 13:47, Đinh Tài [email protected] wrote:
Mr. Đinh Thanh Tài Former Secretary of IU IT Youth UnionPhone number: +84 934331161 |
It seems that your algorithm doesn't create the random time for order creation. It just random the day, but the hour is a fixed number.
I suggest that in the function createAt .... you rand the time instead of the day, so it can random the time for us to use.
I'm currently work on a project that need this feature so much. By the way, thank you for you contribution.,
Wish you all the best.
The text was updated successfully, but these errors were encountered: