Keyword

Form add and edit date format no work in thai language

  • Padungsak Wichaidit
  • Padungsak Wichaidit's Avatar Topic Author
  • Offline
  • New Member
More
7 years 8 months ago #159880 by Padungsak Wichaidit
Form add and edit date format no work in thai language was created by Padungsak Wichaidit
for thai language use default date format on add and edit form

>>administrator>>components>>com_k2>>views>>item>>view.html.php
inline 137
$created = $item->created ;
/*Debug date format not work for thai lang*//*JHTML::_('date', $item->created, $dateFormat)*/
$publishUp = $item->publish_up;
/*Debug date format not work for thai lang*//*JHTML::_('date', $item->publish_up, $dateFormat)*/

if ((int)$item->publish_down)
{
$publishDown = $item->publish_down;
/*Debug date format not work for thai lang*//*JHTML::_('date', $item->publish_down, $dateFormat)*/
}

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 8 months ago #159888 by Krikor Boghossian
Replied by Krikor Boghossian on topic Form add and edit date format no work in thai language
Hello,

Unfortunately thai date is not supported by default.
A nice function to include in your template would be github.com/Rundiz/thai-date

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum