Posted by David Stosik on January 25, 2013 at 1:22pm
1 follower
| Project: | Rules |
| Version: | 7.x-2.x-dev |
| Component: | Rules Core |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
Hello,
At the moment, convert data can convert a date to a string, but the output can only be a Linux timestamp.
It would be useful to be able to provide a format, and even a timezone, to get a usable string (to put in a mail, display to a user...).
Patch will follow.
David
Comments
#1
Here is the patch.
Feel free to test and give me a feedback.
David
#2
My code breaks other actions, such as "Add a variable", but I don't know why yet.
Any help is welcome!
#3
Here is a better patch, that does not seem to break anything.
David