Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#3773 closed defect (bug) (invalid)

i cant select the time format in current_time

Reported by: tandilboy Owned by:
Milestone: Priority: low
Severity: trivial Version:
Component: Administration Keywords:
Focuses: Cc:


<?php echo current_time($type, $gmt = 0); ?> 

i can´t select the time and date format in current_time for template purposes

Change History (4)

#1 @technosailor
11 years ago

In templates, you use the_time() or the_date(), presuming you're referring to the Loop...

#2 @foolswisdom
11 years ago

  • Milestone 2.1.1 deleted
  • Resolution set to invalid
  • Status changed from new to closed

Closing INVALID. As technosailor eludes to, please provide more information when opening a ticket including referencing URLs that support the behavior you expect.

#3 @tandilboy
11 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

i not looking for any post date or time. i just looking for the current date and time; and in current_time i cant select the time format (likes the the_time and the_date commands)

#4 @majelbstoat
11 years ago

  • Priority changed from high to low
  • Resolution set to invalid
  • Severity changed from major to trivial
  • Status changed from reopened to closed
  • Version 2.1 deleted

You want to use

<?php date('D F js, Y'); ?>

or whatever format you want - http://au.php.net/manual/en/function.date.php for more information on this built in PHP function.

Note: See TracTickets for help on using tickets.