Hello,
Can anyone tell me what the SetDue method of the Ticket object expects
in terms of date format, i.e. is it Unix or YYYY-MM-DD or something else?
Thanks,
Stewart
Stewart Tranter
Computing Services
Loughborough University
E: s.g.tranter@lboro.ac.uk
W: http://www.lboro.ac.uk/computing/
T: +44 (0) 1509 223719
F: +44 (0) 1509 223989
I’ve only had luck with MM-DD-YYYY. Other formats have produced… odd results.
Time::ParseDate is used for parsing ticket’s date input fields. You
could try some advanced variants:
http://wiki.bestpractical.com/index.cgi?SearchOnDates
Have named page wrong. me–. Page should be renamed into
“DatesInWebUI” or something like this.On 11/7/05, Steven E. Ames sames@officescape.com wrote:
I’ve only had luck with MM-DD-YYYY. Other formats have produced… odd results.
-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com]On Behalf Of Stewart
Tranter
Sent: Monday, November 07, 2005 11:12 AM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Setting Due dates in scripts
Hello,
Can anyone tell me what the SetDue method of the Ticket
object expects
in terms of date format, i.e. is it Unix or YYYY-MM-DD or
something else?
Thanks,
Stewart
Stewart Tranter
Computing Services
Loughborough University
The rt-users Archives
Be sure to check out the RT Wiki at http://wiki.bestpractical.com
Buy your copy of our new book, RT Essentials, today!
Download a free sample chapter from http://rtbook.bestpractical.com
The rt-users Archives
Be sure to check out the RT Wiki at http://wiki.bestpractical.com
Buy your copy of our new book, RT Essentials, today!
Download a free sample chapter from http://rtbook.bestpractical.com
Best regards, Ruslan.
Interesting. It says that ‘mm/dd/yyyy’ should be parsed correctly. However when I put in (for example) ‘11/08/2005’ it parses it as August 11, 2005 (dd/mm/yyyy which is supposedly UK only). Do I have some sort of UK flag turned on? Weirder stuff is when I try 11/17/2005 and end up with ‘May 13 2006’. Heh.
I test this by changing a due date on a ticket.
Check the value of the $DateDayBeforeMonth setting in your
etc/RT_Config.pm or etc/RT_SiteConfig.pm.
Mark Roedel
Web Programmer / Analyst
LeTourneau University
Longview, Texas-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Steven E.
Ames
Sent: Wednesday, November 09, 2005 10:20 AM
To: Ruslan Zakirov
Cc: rt-users@lists.bestpractical.com
Subject: RE: [rt-users] Setting Due dates in scripts
Interesting. It says that ‘mm/dd/yyyy’ should be parsed correctly.
However when I put in (for example) ‘11/08/2005’ it parses it as August
11, 2005 (dd/mm/yyyy which is supposedly UK only). Do I have some sort
of UK flag turned on? Weirder stuff is when I try 11/17/2005 and end up
with ‘May 13 2006’. Heh.
I test this by changing a due date on a ticket.