Current date token
sammys - January 16, 2007 - 02:35
| Project: | Token |
| Version: | 5.x-1.4 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | sammys |
| Status: | closed |
Description
Hi Jeff,
It would be handy to have the current date as a token. There will be two dates [site-current-date] and [user-current-date] allowing the a timezone adjustment. I've added them into my working copy. Will post patch if you agree this is a reasonable feature request.
Cheers,
--
Sammy Spets
Synerger
http://synerger.com

#1
Here is a patch for it.
sammys
#2
Here is a patch for it. You may want to use format_date instead. *shrug*
sammys
#3
oops... you released a new version. patch for that _minus_ the 4.7 hook_help().
#4
New patch using format_date().
#5
Now part of token.module. Thanks!
#6