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?
But take a look at this comment: http://stackoverflow.com/a/470901/938664
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.
@pedram if php doesn’t work for you use sql instead:
$querydate = "SELECT now()";
$nowdate = $wpdb->get_var( $wpdb->prepare($querydate, 1));
Hmm. Not sure if PHP will work since it runs off the server. I’m not familiar with SQL so try the above.
@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.
Sunday 17 Feb 2013… i want to change it to:
Sunday 29 Feb 1391
i change “Feb” in language files manually.
Thanks guys, problem solved.
i’v used a jalali php class and require_once, and it works.
You must be logged in to reply to this topic.
Search for Stuff
Browse the Archives
Get the Newsletter
... or get the RSS feed