1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Wordpress the_time problem

Discussion in 'PHP' started by nextebizguy, Aug 27, 2006.

  1. #1
    I'm having a problem with

    <?php the_time('F j, Y'); ?>

    on my wordpress blog. It retuns Dec 31 1969 and I can't find how to fix that. Any ideas what might be happening here?

    Thanks
     
    nextebizguy, Aug 27, 2006 IP
  2. dotcomguy

    dotcomguy Peon

    Messages:
    824
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Whats your servers time and date set to?
     
    dotcomguy, Aug 27, 2006 IP
  3. nextebizguy

    nextebizguy Peon

    Messages:
    276
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I ran some php time code on the server and it reports correctly.

    Now: 2006-08-27 Next Week: 2006-09-03

    The wordpress time is messed up for some reason.
     
    nextebizguy, Aug 27, 2006 IP
  4. dotcomguy

    dotcomguy Peon

    Messages:
    824
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I would suggest a fresh install maybe try fantastico if its available in your cpanel if indeed you do use cpanel.

    hope it helps,
     
    dotcomguy, Aug 27, 2006 IP
  5. fscripting

    fscripting Banned

    Messages:
    288
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    try

    date('Y-m-d')
     
    fscripting, Aug 27, 2006 IP