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

Comments

sammys’s picture

Version: 5.x-1.3 » 5.x-1.4
Assigned: Unassigned » sammys
Status: Active » Needs review

Here is a patch for it.

sammys

sammys’s picture

StatusFileSize
new3.59 KB

Here is a patch for it. You may want to use format_date instead. *shrug*

sammys

sammys’s picture

StatusFileSize
new1.13 KB

oops... you released a new version. patch for that _minus_ the 4.7 hook_help().

sammys’s picture

StatusFileSize
new1.73 KB

New patch using format_date().

eaton’s picture

Status: Needs review » Fixed

Now part of token.module. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)