×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Change format of Calendar (J_Calendar)
Nick Gardei
New Member
Posts: 10
9 năm 8 tháng trước #690
bởi Nick Gardei
Replied by Nick Gardei on topic Change format of Calendar (J_Calendar)
Long story short is this;
Even after changing the preg_match to validate (return true) for my date format the search still fails.
There is yet another place where the preg_match needs to line up - inside the getListQuery() function in the same file.
However this STILL won't work because the data is stored in the table in YYYY-MM-DD format.
Ugh....frustrating for something so simple. I've literally wasted 6 hours so far on this one tiny detail.
Even after changing the preg_match to validate (return true) for my date format the search still fails.
There is yet another place where the preg_match needs to line up - inside the getListQuery() function in the same file.
//Checking "_dateformat"
$filter_date_from = $this->state->get("filter.date_from_dateformat");
if ($filter_date_from && preg_match("/^(19|20)\d\d[-](0[1-9]|1[012])[-](0[1-9]|[12][0-9]|3[01])$/", $filter_date_from) && date_create($filter_date_from) ) {
$query->where("a.date >= '".$db->escape($filter_date_from)."'");
}
However this STILL won't work because the data is stored in the table in YYYY-MM-DD format.
Ugh....frustrating for something so simple. I've literally wasted 6 hours so far on this one tiny detail.
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Russell English
Junior Member
Posts: 21
9 năm 8 tháng trước - 9 năm 8 tháng trước #691
bởi Russell English
Replied by Russell English on topic Change format of Calendar (J_Calendar)
Hi Nick, I'm glad it's not just me that was having difficulty with this.
Changing the date format should be a simple procedure and should be managed with a Language override within the CMS itself (as many other components and Joomla itself do).
Thanks for the updates though and for keeping me in the loop.
Changing the date format should be a simple procedure and should be managed with a Language override within the CMS itself (as many other components and Joomla itself do).
Thanks for the updates though and for keeping me in the loop.
Last edit: 9 năm 8 tháng trước by Russell English.
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Søren Beck Jensen
Administrator
Posts: 81
9 năm 8 tháng trước #694
bởi Søren Beck Jensen
Søren Beck Jensen
Founder, Component-Creator.com
Replied by Søren Beck Jensen on topic Change format of Calendar (J_Calendar)
We are looking into the COM_PRUEBA issue and I am happy to report that it looks like someone will be buying "f**k up beer" this Friday, which is tradition when someone makes a stupid mistake in our company. If you are in or around Granada, Spain you are invited.
In relation to making it easier to change the date format, then we will investigate what we can do to make this easier to do.
In relation to making it easier to change the date format, then we will investigate what we can do to make this easier to do.
Søren Beck Jensen
Founder, Component-Creator.com
Những thành viên sau(s) đã Cảm ơn: Russell English
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Russell English
Junior Member
Posts: 21
9 năm 6 tháng trước #790
bởi Russell English
Replied by Russell English on topic Change format of Calendar (J_Calendar)
Hi Søren, is there any update on this please?
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Søren Beck Jensen
Administrator
Posts: 81
9 năm 6 tháng trước #791
bởi Søren Beck Jensen
Søren Beck Jensen
Founder, Component-Creator.com
Replied by Søren Beck Jensen on topic Change format of Calendar (J_Calendar)
We fixed the COM_PRUEBA issue immediately. Is that what you are having problems with or are you talking about the date format issue?
Søren Beck Jensen
Founder, Component-Creator.com
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Russell English
Junior Member
Posts: 21
9 năm 6 tháng trước #792
bởi Russell English
Replied by Russell English on topic Change format of Calendar (J_Calendar)
Thanks Søren, talking about the date format issue
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Thời gian tải trang: 0.054 giây