core icon indicating copy to clipboard operation
core copied to clipboard

Need ALLOW default value of a date field

Open jtesser opened this issue 13 years ago • 6 comments

See https://github.com/dotCMS/dotCMS/issues/1729

The fixes on 1729 are great but we need to allow the date to be set to now as an option in the field of the structure

http://screencast.com/t/r5mhqU9o2ID

jtesser avatar Feb 07 '13 19:02 jtesser

Allow the following patterns

[2/7/13 2:08:31 PM] Jason Tesser: now [2/7/13 2:08:44 PM] Jason Tesser: 12/23/1975 [2/7/13 2:08:53 PM] Jason Tesser: 12/23/1975 HH:MM

jtesser avatar Feb 07 '13 19:02 jtesser

Should also allow ISO 8601 format? 12/23/1975 is unambiguous but what about 05/03/02?

jkshapiro avatar Feb 07 '13 21:02 jkshapiro

Maybe the default format should be db-like

YYYY-MM-DD (HH:MM:SS)

Will


Will Ezell http://dotcms.com phone: (305) 900-2001 ext. 7010 direct: (978) 294-9429 https://www.google.com/voice/b/0?pli=1#phones skype: wezell1

On Thu, Feb 7, 2013 at 4:12 PM, Kivi Shapiro [email protected]:

Should also allow ISO 8601 format? 12/23/1975 is unambiguous but what about 05/03/02?

—

Reply to this email directly or view it on GitHubhttps://github.com/dotCMS/dotCMS/issues/2019#issuecomment-13259882.

dotcmsCodeReview avatar Feb 07 '13 21:02 dotcmsCodeReview

It'd month day year

On Thursday, February 7, 2013, Kivi Shapiro wrote:

Should also allow ISO 8601 format? 12/23/1975 is unambiguous but what about 05/03/02?

— Reply to this email directly or view it on GitHubhttps://github.com/dotCMS/dotCMS/issues/2019#issuecomment-13259882.

Thanks, Jason S. Tesser Director, Support Services dotCMS, Inc. T: 305.858.1422 x7003 http://twitter.com/dotCMS www.dotcms.com

dotcmsCodeReview avatar Feb 07 '13 21:02 dotcmsCodeReview

db-like sounds great

dotjorgeu avatar Feb 07 '13 21:02 dotjorgeu

Fixed, tested on master 2.5 // postgres the default value works fine

bryanboza avatar Mar 18 '13 16:03 bryanboza