WebSite X5Help Center

 
Luis J.
Luis J.
User

Blog date formats  en

Автор: Luis J.
Просмотрено 1197, Подписчики 1, Размещенный 0  

Is there a script or something to change the date formats on the Blog homepage and blog posts?

I need it to be in US format, not EU.

Размещено
11 Ответы
Aleksej H.
Aleksej H.
Moderator

Hello. Try this:

Читать больше
Размещено От Aleksej H.
Luis J.
Luis J.
User
Автор

Sorry - it did not worked - still shows EU date format.

Читать больше
Размещено От Luis J.
Luis J.
Luis J.
User
Автор

i think the issue is on this blog.php file 

the php echo is "timestamp" but NOT being formatted correctly:



<?php
$blog = new imBlog();
$i = 0;
$posts = array_values($blog->getPosts());
while ($i < 5 && $i < count($posts)) {
echo '<div class="post">';
echo '<a href="#" data-link="index.php?id=' . $posts[$i]['id'] . '" class="post_title">' . $posts[$i]['title'] . '</a>';
echo '<div class="post_body">' . $posts[$i]['summary'] . '</div>';
echo '<div class="post_data">Published by ' . $posts[$i]['author'] . ' - ' . $posts[$i]['timestamp'] . '</div>';
echo '</div>';
$i++;
}
?>

Читать больше
Размещено От Luis J.
Aleksej H.
Aleksej H.
Moderator

I sent a notification about your question to the company employees, expect an answer from them here in the comments.

Читать больше
Размещено От Aleksej H.
Incomedia
Stefano G.
Incomedia

Hello Luis

Can I please ask you to show here how you modified the field that Aleksej advised? This way, I can make sure that it was edited in the correct way

I remain available here

Stefano

Читать больше
Размещено От Stefano G.
Luis J.
Luis J.
User
Автор

I tried the following:

[D] [MM] [dd] [yyyy]

and

[D] [M] [d] [yyyy]

None works.

Читать больше
Размещено От Luis J.
Daniel W.
Daniel W.
User
Лучший пользователь месяца EN

It doesn't work for me either, I got it with...

[D] [M] [dd] [yyyy]

... tested, but the date in the blog does not change. Is there any trick?

Читать больше
Размещено От Daniel W.
Aleksej H.
Aleksej H.
Moderator

1) Press the CTRL key and without releasing it, click on the preview. If the date has changed, then go to #2.
2) Remove all site files from hosting.
3) Re-upload the site completely to the hosting. And not just changes.
4) Clear your browser cache.

Читать больше
Размещено От Aleksej H.
Luis J.
Luis J.
User
Автор
Aleksej H.
1) Press the CTRL key and without releasing it, click on the preview. If the date has changed, then go to #2. 2) Remove all site files from hosting. 3) Re-upload the site completely to the hosting. And not just changes. 4) Clear your browser cache.

Tried it - nothing , same issue, it doesnt change the date format.

Читать больше
Размещено От Luis J.
John S.
John S.
User

It is most likely a bug - the programmers have not made the date-formatting in the blog be tied to the settings.

Читать больше
Размещено От John S.
Incomedia
Stefano G.
Incomedia

Hello everyone

I can confirm that at the moment, those specific dates are not changed based on the setting you mentioned and in fact, cannot be changed at all

I've informed the developers of this so that an improvement can be made to the software in order to make these dates configurable as well

Thank you for your feedback

Stefano

Читать больше
Размещено От Stefano G.