简体   繁体   English

在joomla 3.5中使用函数JHtml :: date()

[英]Using function JHtml::date() in joomla 3.5

I'm going to help this function( JHtml::date(); ) convertion Gregorian date Jalali date. 我将帮助此函数( JHtml::date(); )转换格里高利日期Jalali日期。 But when I use this code error page is displayed: 但是,当我使用此代码时,将显示错误页面:

DateTime::__construct(): DateTime :: __ construct():

错误页面的屏幕截图

My code is: 我的代码是:

echo JHtml::date ($input = '28th May، 2016 11:29PM', 'jS M، Y g:iA', false );

This is a bug n joomla as I dont know why it depends on the correct path of tmp and log folder if date is used. 这是一个joomla错误,因为我不知道为什么如果使用日期,它取决于tmp和日志文件夹的正确路径。 So first you check if your log and tmp path defined in Joomla under global configuration are correct. 因此,首先检查在全局配置下在Joomla中定义的日志和tmp路径是否正确。

Also check the folder permissions. 还要检查文件夹权限。 It should be 755 for folders and 644 for files except configuration.php file. 除configuration.php文件外,文件夹应为755,文件应为644。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM