#12049 closed defect (fixed)
how to bring system date on a custom date field
Reported by: | Owned by: | Ryan J Ollos | |
---|---|---|---|
Priority: | high | Component: | DateFieldPlugin |
Severity: | major | Keywords: | |
Cc: | sivaprakash.ramasamy@… | Trac Release: | 1.0 |
Description
How can i bring today's date or system's date on my custom date field when creating a new ticket. Right now the datefield value is provided as text.
Thanks, Sivaprakash R
Attachments (0)
Change History (4)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
A creation timestamp is already stored in the ticket table: trac:TracDev/DatabaseSchema. I guess you must want a ticket field to default to the current date but also have the ability to change the value in this field though.
Note also that a true datefield has been added in trac:milestone:1.1.1, which is a "dev stable" release, and it will be available in the forthcoming "production stable" release, Trac 1.2 (approximately 3-6 months from now).
On the datefieldplugin/1.0 branch I'll implement a feature that will cause the special string <now>
in the value
field to be replaced with the current date. Example use:
due_date.value = <now>
See DateFieldPlugin@51 for more info.
comment:4 Changed 10 years ago by
Trac Release: | → 1.0 |
---|
I have created a custom field which want to user to specify the date but the field default value is a text value. Im trying to bring system's date or today's date when creating a new ticket.
Thanks, Sivaprakash R