Give help. Get help.

  • # February 17, 2013 at 8:15 am

    Hi, i use this php snip to show time in my forum, it’s static time, i want to change to dynamic. and want to change date,but unfortunately it take order from server, is there a way to change it? without tell to server support?

    ‘, $context,’

    # February 17, 2013 at 12:16 pm

    Thanks, but it only change time zone, i want to change date, i’m live in Asia, and my date is different. for example, today not 17 feb 2013.

    # February 17, 2013 at 12:48 pm

    @pedram if php doesn’t work for you use sql instead:

    $querydate = "SELECT now()";
    $nowdate = $wpdb->get_var( $wpdb->prepare($querydate, 1));
    # February 17, 2013 at 1:04 pm

    Hmm. Not sure if PHP will work since it runs off the server. I’m not familiar with SQL so try the above.

    # February 17, 2013 at 1:57 pm

    @mostafaghanbari , thanks but i’m not familiar with SQL too.
    can you explain more about it? how can i use it?

    in fact i want to change my date to JALALI (Persian date) , just day and year, not months name.
    for ex.

    today is
    Sunday 17 Feb 2013… i want to change it to:
    Sunday 29 Feb 1391

    i change “Feb” in language files manually.

    # February 17, 2013 at 4:36 pm

    Thanks guys, problem solved.
    i’v used a jalali php class and require_once, and it works.

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

You must be logged in to reply to this topic.