Modify

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#12049 closed defect (fixed)

how to bring system date on a custom date field

Reported by: sivaprakash123@… 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 9 years ago by anonymous

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

comment:2 Changed 9 years ago by Ryan J Ollos

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:3 Changed 9 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

In 14330:

3.0.0dev: Replace the special value <now> in the value field with the current date. Fixes #12049.

comment:4 Changed 9 years ago by Ryan J Ollos

Trac Release: 1.0

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.