Skip to main content

Search and Top Navigation

#4843 closed enhancement (duplicate)

Opened September 08, 2009 01:38PM UTC

Closed July 24, 2010 01:14AM UTC

Last modified October 03, 2012 04:59PM UTC

Add support for Thai year format in datepicker module

Reported by: panuta Owned by:
Priority: minor Milestone: 1.8
Component: ui.datepicker Version: 1.7.2
Keywords: thai year Cc:
Blocked by: Blocking:

Year number that is used in Thailand is 543 ahead of western year number.

For example, says this year is 2009 in western format, in Thailand it will be 2552, which was mathematically calculated by adding 543 to 2009.

Normal localization method is not capable of doing this. I suggest to add an option in datepicker specifying how many years to be added to normal year number, for displaying purpose only.

Attachments (0)
Change History (4)

Changed November 16, 2009 03:55PM UTC by jzaefferer comment:1


So when asking the datepicker for the year, you still want to get the Western-based year back?

Changed February 02, 2010 07:32AM UTC by panuta comment:2

Yes, it should return western-based year back. Both set and get action should require using Gregorian year as usual. Supporting Thai year will affect only when displaying the calendar to user.

YUI Calendar does support this feature by setting YEAR_OFFSET option to specify an offset value from Gregorian year. They have an example using this option for Taiwan calendar

So this option does not only benefit to Thai localization, but Taiwan as well.

Changed July 24, 2010 01:14AM UTC by scottgonzalez comment:3

resolution: → duplicate
status: newclosed

Duplicate of #5789.

Changed October 03, 2012 04:59PM UTC by scottgonzalez comment:4

milestone: 1.next1.8