Viewing 15 posts - 31 through 45 (of 61 total)
  • Author
    Posts
  • bucakli Friend
    #331852

    <em>@gray 163853 wrote:</em><blockquote>JA Developer
    I’ve implemented this approach already (I posted here the same solution).

    It would be great to include this code in the next release of Teline III, isn’t it?</blockquote>

    you are right:)

    androbil Friend
    #338546

    <em>@bucakli 163838 wrote:</em><blockquote>i changed

    <p class=”ja-day”>
    <?php
    echo “<span class=”date”>”. JText::_(date (‘d’)) .” / “.JText::_(date (‘m’)).” / “.JText::_(date (‘Y’)).”</span>”;
    echo “<span class=”day”> – “.JText::_(date (‘l’)).”</span>”;

    ?>

    i solved 06/02/2010 – Cumartesi but i didnot 06 Şubat 2010 – Cumartesi month language always english

    but thank you my friend</blockquote>

    change date (‘m’) to date (‘F’)

    [PHP]
    <p class=”ja-day”>
    <?php
    echo “<span class=”day”>”.JText::_(date (‘l’)).”</span>”;
    echo “<span class=”date”>, “.JText::_(date (‘d’)).” “. JText::_(date (‘F’)) .” “.JText::_(date (‘Y’)).” </span>”;
    ?>
    </p>
    [/PHP]

    maximomm231 Friend
    #341491

    <em>@micrantha 154943 wrote:</em><blockquote>OK, I can be more informative now, after friendly tip of Gray:

    In my case I replaced original code line

    return gmdate("h:i:s A", $sec+$tz).' GMT';

    with

    setlocale(LC_ALL, 'nl_NL'); //set the output in NL-language
    return strftime( "%a %e %b %H:%M %Z" , $sec+$tz).' ';

    Output: donderdag 26 nov 16:02 CET
    </blockquote>
    If i use the sample above, on my site (german, hamburg ) there are 2 hours missing to the actually time. Whats wrong?

    Thanks for help.

    micrantha Friend
    #341589

    Sorry, I don’t know.
    Do you get CEST as output? (Central European Summer Time)
    (CEST is 2 hours ahead of Coordinated Universal Time (UTC))

    Regards,
    Micrantha

    maximomm231 Friend
    #341605

    Yes its CEST.

    maximomm231 Friend
    #341854

    What must i do to get the right time UTC?

    ramadji Friend
    #341971

    Awesome ! works great for me too. Thanks a lot for the piece of code.

    Saguaros Moderator
    #342022

    <em>@maximomm231 176409 wrote:</em><blockquote>What must i do to get the right time UTC?</blockquote>

    Dear maximomm231!

    Solution to resolve this issue in there :

    http://www.joomlart.com/forums/showp…1&postcount=23

    hariorama Friend
    #342024

    page not found?

    maximomm231 Friend
    #342084

    Yes a dead link.

    <blockquote>Page Not Found!

    Image Sorry! The page you are looking for could not be found or is currently unavailable on JoomlArt.com. Please check the link for typing errors and try again.

    We update the contents on a regular basis and sometimes, the old contents might have been move to corresponding sections. Please try to use our site map or search for the things you want.

    If you find difficulty in navigating through JoomlArt.com, feel free to contact our webmaster.</blockquote>

    fmedia Friend
    #342224

    my date started to show incorrectly since recently. it show one day upfront, for example today its saturday 1st. but it shows monday 1st (or in my case its Sub 1st while it show Ned 1st). any ideas?

    <p class=”ja-day”>
    <?php
    $datum = date(“j F Y”);
    $dagvanweek = date(“l”);
    $arraydag = array(
    “Pon”,
    “Uto”,
    “Sri”,
    “Čet”,
    “Pet”,
    “Sub”,
    “Ned”
    );
    $dagvanweek = $arraydag;
    $arraymaand = array(
    “Sij”,
    “Velj”,
    “Ožu”,
    “Tra”,
    “Svi”,
    “Lip”,
    “Srp”,
    “Kol”,
    “Ruj”,
    “Lis”,
    “Stu”,
    “Pro”
    );
    $datum = date(“j “) . $arraymaand
    . date(” Y”);
    echo “$dagvanweek, $datum”;
    ?>
    </p>

    Saguaros Moderator
    #342513

    dear fmedia!

    Did you follow the solution in this thread

    http://www.joomlart.com/forums/showpost.php?p=163809&postcount=28

    maximomm231 Friend
    #342519

    <em>@tienhc 176624 wrote:</em><blockquote>Dear maximomm231!

    Solution to resolve this issue in there :

    http://www.joomlart.com/forums/showp…1&postcount=23</blockquote>

    The link is dead – and now?

    fmedia Friend
    #342539

    now it shows like this

    Monday, May 03rd

    how can i get it in this format:

    Monday, dd. mm.

    Thank you

    gray Friend
    #342623

    <em>@fmedia 177264 wrote:</em><blockquote>now it shows like this

    Monday, May 03rd

    how can i get it in this format:

    Monday, dd. mm.

    Thank you</blockquote>

    Try this
    [php]
    <p class=”ja-day”>
    <?php
    echo “<span class=”day”>”.JText::_(date (‘l’)).”</span>”;
    echo “<span class=”date”>, “. date (‘d’) . “.” . date (‘m’).”.</span>”;
    ?>
    </p>
    [/php]

Viewing 15 posts - 31 through 45 (of 61 total)

This topic contains 61 replies, has 30 voices, and was last updated by  euroadvltd 11 years, 10 months ago.

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