Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to change default date language?
#2
You can modify the date format that get_page_date uses, using date format flags as the first parameter.
But locales are not supported prior to 3.4 (development), so maybe you can use a more standard format at least.

carlos wrote a great function to handle this for 3.4, which we are still testing.
If you are interested in hacking in to your theme , let us know.

PHP Code:
/**
 * Get Page Date
 *
 * This will return the page's updated date/timestamp
 *
 * @since 1.0
 * @uses $date
 * @uses $TIMEZONE
 *
 * @param string $i Optional, default is "l, F jS, Y - g:i A"
 * @param bool $echo Optional, default is true. False will 'return' value
 * @return string Echos or returns based on param $echo
 */
function get_page_date($i "l, F jS, Y - g:i A"$echo=true) { 
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
How to change default date language? - by none20 - 2014-10-30, 03:31:37
RE: How to change default date language? - by shawn_a - 2014-10-30, 03:48:19



Users browsing this thread: 2 Guest(s)