<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Date Formatting Update Regarding Caching Problems - How-to and Troubleshooting - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 14 Jun 2026 04:08:01 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Date Formatting Update Regarding Caching Problems</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/paged/2/#post-107489</link>
                        <pubDate>Sat, 06 Jan 2024 16:21:05 +0000</pubDate>
                        <description><![CDATA[@spieloI have updated the previous message, and now the link should work. Additionally, any customized wpForo code file inside the /wp-content/plugins/wpforo/ directory will be lost during e...]]></description>
                        <content:encoded><![CDATA[<p>@spielo<br /><br />I have updated the previous message, and now the link should work. Additionally, any customized wpForo code file inside the /wp-content/plugins/wpforo/ directory will be lost during each update. Therefore, we recommend creating your own new widget with a new name using your customized .php files.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>BlackRaz</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/paged/2/#post-107489</guid>
                    </item>
				                    <item>
                        <title>RE: Date Formatting Update Regarding Caching Problems</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/paged/2/#post-107482</link>
                        <pubDate>Sat, 06 Jan 2024 15:55:11 +0000</pubDate>
                        <description><![CDATA[@blackraz 
Thanks for the info, I tested the code and didn&#039;t find a problem, but never now, that&#039;s why I&#039;m releasing the code here for everyone to test it themselves or even the developers ...]]></description>
                        <content:encoded><![CDATA[<p>@blackraz </p>
<p>Thanks for the info, I tested the code and didn't find a problem, but never now, that's why I'm releasing the code here for everyone to test it themselves or even the developers if they have any thoughts about the time format.<br /><br />your link doesn't work on follow a 404 page, anyway I have some customer widgets, the only question is the actual content, like RecentPost.php is still overwritten during an update? It is its own PHP file and has nothing to do with the widgets in Wordpress</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>spielo</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/paged/2/#post-107482</guid>
                    </item>
				                    <item>
                        <title>RE: Date Formatting Update Regarding Caching Problems</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/paged/2/#post-107475</link>
                        <pubDate>Sat, 06 Jan 2024 14:52:36 +0000</pubDate>
                        <description><![CDATA[Hi  @spielo ,  @tutrix ,  @dimalifragis 
It&#039;s not recommended to use the provided customization as it may lead to conflicts with timezones and show incorrect date and time for users in diff...]]></description>
                        <content:encoded><![CDATA[<p>Hi  @spielo ,  @tutrix ,  @dimalifragis </p>
<p>It's not recommended to use the provided customization as it may lead to conflicts with timezones and show incorrect date and time for users in different timezones. Regarding saving the custom Recent widget and protecting it from wpForo updates, you should consider creating your own custom widget with a different name.<br /><br />You can refer to detailed documentation on creating a custom WordPress widget here: <a href="https://www.wpbeginner.com/wp-tutorials/how-to-create-a-custom-wordpress-widget/" target="_blank" rel="noopener"></a><br /><br />This approach will help you achieve the desired functionality without risking conflicts and issues during updates.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>BlackRaz</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/paged/2/#post-107475</guid>
                    </item>
				                    <item>
                        <title>RE: Date Formatting Update Regarding Caching Problems</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/paged/2/#post-107457</link>
                        <pubDate>Fri, 05 Jan 2024 16:35:41 +0000</pubDate>
                        <description><![CDATA[i have also updated in theme, we use style 2 forum.php
	&lt;p class=&quot;wpforo-last-post-author&quot;&gt;
    &lt;?php wpforo_member_link($member, &#039;&#039;); ?&gt;&lt;span class=&quot;wpforo-date wpforo-date...]]></description>
                        <content:encoded><![CDATA[<p>i have also updated in theme, we use style 2 forum.php</p>
<pre contenteditable="false">	&lt;p class="wpforo-last-post-author"&gt;
    &lt;?php wpforo_member_link($member, ''); ?&gt;&lt;span class="wpforo-date wpforo-date-ago"&gt;, &lt;?php 
    $last_post_date = date("Y-m-d", strtotime($forum . '+1 hour'));
    $current_date = date_i18n('Y-m-d');

    if ($last_post_date === $current_date) {
        echo esc_html__( 'heute um ', 'text-domain' ) . date_i18n('H:i', strtotime($forum . '+1 hour'));
    } elseif ($last_post_date === date_i18n('Y-m-d', strtotime("-1 day"))) {
        echo esc_html__( 'gestern um ', 'text-domain' ) . date_i18n('H:i', strtotime($forum . '+1 hour'));
    } else {
       echo esc_html__( 'am ', 'text-domain' ) . date_i18n('d/m/Y H:i', strtotime($forum . '+1 hour'));
    }
    ?&gt;&lt;/span&gt;
&lt;/p&gt;</pre>
<p>and for style 2 topic.php</p>
<pre contenteditable="false">&lt;div class="wpforo-last-post"&gt;&lt;span class="wpforo-last-post-author"&gt;&lt;?php wpforo_member_link($last_post_member, ''); ?&gt;&lt;span class="wpforo-date wpforo-date-ago"&gt;, &lt;?php
        $last_post_date = date("Y-m-d", strtotime($last_post . '+1 hour'));
        $current_date = date_i18n('Y-m-d');

        if ($last_post_date === $current_date) {
            echo esc_html__( 'heute um ', 'text-domain' ) . date_i18n('H:i', strtotime($last_post . '+1 hour'));
        } elseif ($last_post_date === date_i18n('Y-m-d', strtotime("-1 day"))) {
            echo esc_html__( 'gestern um ', 'text-domain' ) . date_i18n('H:i', strtotime($last_post . '+1 hour'));
        } else {
            echo esc_html__( 'am ', 'text-domain' ) . date_i18n('d/m/Y H:i', strtotime($last_post . '+1 hour'));
        }
        ?&gt;&lt;/span&gt;
    &lt;/span&gt;
&lt;/div&gt;</pre>
<p>by the way, i do not find any way at the moment how i safe the widgtes code outside the plugin that is still work after wpforo plugin have a update, with theme is no problem if you move too wp-theme folder.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>spielo</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/paged/2/#post-107457</guid>
                    </item>
				                    <item>
                        <title>RE: Date Formatting Update Regarding Caching Problems</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/paged/2/#post-107455</link>
                        <pubDate>Fri, 05 Jan 2024 16:04:59 +0000</pubDate>
                        <description><![CDATA[@spielo 
Yes, that&#039;s how it works, thank you very much &#x1f600;]]></description>
                        <content:encoded><![CDATA[<p>@spielo </p>
<p>Yes, that's how it works, thank you very much &#x1f600; </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Tutrix</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/paged/2/#post-107455</guid>
                    </item>
				                    <item>
                        <title>RE: Date Formatting Update Regarding Caching Problems</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/paged/2/#post-107454</link>
                        <pubDate>Fri, 05 Jan 2024 15:56:17 +0000</pubDate>
                        <description><![CDATA[@tutrix 
is fixed with this update: 
&lt;p class=&quot;postuser&quot;&gt;
    &lt;?php wpforo_phrase( &#039;by&#039; ) ?&gt; &lt;?php wpforo_member_link( $member ) ?&gt;,
    &lt;span class=&quot;uncached&quot; style...]]></description>
                        <content:encoded><![CDATA[<p>@tutrix </p>
<p>is fixed with this update: </p>
<pre contenteditable="false">&lt;p class="postuser"&gt;
    &lt;?php wpforo_phrase( 'by' ) ?&gt; &lt;?php wpforo_member_link( $member ) ?&gt;,
    &lt;span class="uncached" style="white-space: nowrap;"&gt;
        &lt;?php
        $last_post_date = date("Y-m-d", strtotime($post . '+1 hour'));
        $current_date = date_i18n('Y-m-d');

        if ($last_post_date === $current_date) {
            echo esc_html__( 'heute um ', 'text-domain' ) . date_i18n('H:i', strtotime($post . '+1 hour'));
        } elseif ($last_post_date === date_i18n('Y-m-d', strtotime("-1 day"))) {
            echo esc_html__( 'gestern um ', 'text-domain' ) . date_i18n('H:i', strtotime($post . '+1 hour'));
        } else {
            echo esc_html__( 'am ', 'text-domain' ) . '&lt;div class="full-date"&gt;' . date_i18n('d/m/Y, H:i', strtotime($post . '+1 hour')) . '&lt;/div&gt;';
        }
        ?&gt;
    &lt;/span&gt;
&lt;/p&gt;</pre>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>spielo</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/paged/2/#post-107454</guid>
                    </item>
				                    <item>
                        <title>RE: Date Formatting Update Regarding Caching Problems</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/paged/2/#post-107451</link>
                        <pubDate>Fri, 05 Jan 2024 15:20:55 +0000</pubDate>
                        <description><![CDATA[@spielo 
I have now tested the code, unfortunately it currently shows the wrong timee.g. 12:55 instead of 13:55I am currently looking for the solution how or where to insert the (+1 hour) &amp;...]]></description>
                        <content:encoded><![CDATA[<p>@spielo </p>
<p>I have now tested the code, unfortunately it currently shows the wrong time<br />e.g. 12:55 instead of 13:55<br />I am currently looking for the solution how or where to insert the (+1 hour) &#x1f600; </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Tutrix</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/paged/2/#post-107451</guid>
                    </item>
				                    <item>
                        <title>RE: Date Formatting Update Regarding Caching Problems</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/#post-107444</link>
                        <pubDate>Fri, 05 Jan 2024 10:53:45 +0000</pubDate>
                        <description><![CDATA[@spielo Ah, I understand
For example, I use
&lt;?php esc_html( wpforo_date( $post, &#039;d/m/Y g:i a&#039; ) ) ?&gt;
To show the full date and time (without today and yesterday)
 
But ...]]></description>
                        <content:encoded><![CDATA[<p>@spielo Ah, I understand</p>
<p><br />For example, I use</p>
<pre contenteditable="false">&lt;?php esc_html( wpforo_date( $post, 'd/m/Y g:i a' ) ) ?&gt;</pre>
<p>To show the full date and time (without today and yesterday)</p>
<p> </p>
<p>But I will test your code, <strong>today and yesterday</strong> makes the date even clearer &#x1f609; </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Tutrix</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/#post-107444</guid>
                    </item>
				                    <item>
                        <title>RE: Date Formatting Update Regarding Caching Problems</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/#post-107443</link>
                        <pubDate>Fri, 05 Jan 2024 10:35:35 +0000</pubDate>
                        <description><![CDATA[@tutrix Thanks for your tip,
I know all the settings and have implemented them, but cached content is static and no longer dynamic and with a time format in current minutes and seconds, as ...]]></description>
                        <content:encoded><![CDATA[<p>@tutrix Thanks for your tip,</p>
<p>I know all the settings and have implemented them, but cached content is static and no longer dynamic and with a time format in current minutes and seconds, as in the wpforo standard, this is not particularly advantageous. That's why we made this modification to set it to the time of creation and thought we would share it here or maybe encourage the developers to think about the current system displayed, because the one from an hour ago, a month ago, etc. is pretty flat. This can be useful in forums that may require more precise timing. The whole cacher problem also becomes irrelevant.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>spielo</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/#post-107443</guid>
                    </item>
				                    <item>
                        <title>RE: Date Formatting Update Regarding Caching Problems</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/#post-107438</link>
                        <pubDate>Fri, 05 Jan 2024 06:47:46 +0000</pubDate>
                        <description><![CDATA[&gt;&gt;&gt; wpForo and Cache Plugins &#x1f609;]]></description>
                        <content:encoded><![CDATA[<p></p>
<p>yes we use wp-rocket</p>
<p></p>
<p>&gt;&gt;&gt; <a href="https://wpforo.com/community/faq/wpforo-and-cache-plugins/">wpForo and Cache Plugins</a> &#x1f609;</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Tutrix</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/date-form-updatet-about-caching-problems/#post-107438</guid>
                    </item>
							        </channel>
        </rss>
		