Skip to content
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

Month/Daynames should be case insensitive #21

Closed
sebknzl opened this issue Jan 23, 2013 · 2 comments
Closed

Month/Daynames should be case insensitive #21

sebknzl opened this issue Jan 23, 2013 · 2 comments

Comments

@sebknzl
Copy link

sebknzl commented Jan 23, 2013

I find using "JAN" or "SUN" a little unusual, usual crons don't care about the case. I usually use "Jan" or "Sun".

Using str_ireplace() instead of strtr() should do the trick, e.g.

$value = str_ireplace( array( "JAN", "FEB", ... ), array( "0", "1", ... ), $value );
@mtdowling
Copy link
Owner

Can you send a pull request?

@sebknzl
Copy link
Author

sebknzl commented Jan 23, 2013

Ok, will do it in the next few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants