Normal Topic System long Date bug (Read 890 times)
beagle
Junior Member
**
Offline


No personal text

Posts: 80
Location: australia
Joined: May 28th, 2004
System long Date bug
Jul 16th, 2004 at 12:57am
Print Post Print Post  
Has anyone else noticed this,

If an element is set up as a date field & the format of that field is set to system long date.

If the date is entered as today (friday july 16th) a message appears on exiting the element

"warning LE0 cannot be retained converting to SUNDAY, july 16 2004"

on exiting the form (saving) a message appears
"warning LE0 cannot be retained converting to blank"

On changing the element format to system short date or another format, the element behaves correctly.
  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: System long Date bug
Reply #1 - Jul 16th, 2004 at 1:35am
Print Post Print Post  
I had not noticed this. But I just tested it, and I am getting the exact same results you describe.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: System long Date bug
Reply #2 - Jul 16th, 2004 at 12:23pm
Print Post Print Post  
You will see this if your System Long Date has the Weekday in it, i.e. "Friday".

Here's the issue. You have set System Long Date as the Output Format. While the date can be formatted for display with the weekday name, this is not a valid input format. If you type "Friday, Jul 16, 2004" into the element, Sesame can't convert that to a valid date. Therefore, it balks when trying to read it back in to save the value.

You can use a System Long Date with a Weekday as an Output Format for a Report Element, because it never tries to read the formatted value back in.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
beagle
Junior Member
**
Offline


No personal text

Posts: 80
Location: australia
Joined: May 28th, 2004
Re: System long Date bug
Reply #3 - Jul 17th, 2004 at 6:39am
Print Post Print Post  
Ok I think i follow your comments,

however

the date format i type in is 16/7/2004 (i'm an aussie !)
This is then converted by sesame when i exit the field to read sunday etc
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: System long Date bug
Reply #4 - Jul 17th, 2004 at 12:14pm
Print Post Print Post  
Quote:
Ok I think i follow your comments,

however

the date format i type in is 16/7/2004 (i'm an aussie !)
This is then converted by sesame when i exit the field to read sunday etc


Yes. 16/7/2004 is a valid date which can be converted to Sunday... However, Sunday... is not itself a valid input date format, so Sesame can't read it back in as a date once it has been converted.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged