Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • earthson Friend
    #169967

    I just noticed that the time/date is doing something weird in the JaSocial template I just installed. It shows as:

    Sunday, 10 23rd Last update09:58:56 AM

    I’m assuming that the 10 is October, but it looks so odd when displayed that way. How do you change that to say October instead?

    Thanks!

    pavit Moderator
    #421060

    Hi earthson

    to change the format of the date goto templates/ja_social/blocks/topbar.php

    now you have

    <p class="ja-day">
    <?php
    echo "<span class="day">".JText::_(strtoupper(date ('l')))."</span>";
    echo "<span class="date">, ".date ('m')." ".date ('d').date ('S')."</span>";
    ?>

    change to

    <p class="ja-day">
    <?php
    echo "<span class="day">".JText::_(strtoupper(date ('l')))."</span>";
    echo "<span class="date">, ".date ('F')." ".date ('d').date ('S')."</span>";
    ?>

    earthson Friend
    #421062

    Thanks! That worked perfectly 🙂

    phicts Friend
    #421591

    Where do I set on the admin back-end that date on the top of the page to synchronize with my local time. It currently show October 25 but it is now 26th in the Philippines. I already set the General Configuration my time to Manila but it has no effect on that date.

    Thanks in advance.

    pavit Moderator
    #421645

    Hi phicts

    try this way in your topbar.php

    <p class="ja-day">
    <?php
    $timezone = "Asia/Manila";
    if(function_exists('date_default_timezone_set')) date_default_timezone_set($timezone);
    echo "<span class="day">".JText::_(strtoupper(date ('l')))."</span>";
    echo "<span class="date">, ".date ('F')." ".date ('d').date ('S')."</span>";
    ?>

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 3 voices, and was last updated by  pavit 13 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum