PHP Year is a year outdated?

Status
Not open for further replies.

stahn.universe

New Member
Messages
44
Reaction score
0
Points
0
PHP Year function (I think is "the_time") is reporting that the server actual time is 2007. It's a server problem, or mine?

I'm on Cossacks.
 

Alejandro

Staff
Staff member
Community Support
Messages
9,436
Reaction score
1
Points
38
This is Cossacks server time right now: Fri Jul 4 18:23:35 CDT 2008

Seems like the problem's on your side. The php function to get the current time is time() or date() if you want to print it in a special format instead or timestamp. Try doing this and tell me what it says.

PHP:
<?php echo date("Y"); ?>

It should output: 2008.
 

stahn.universe

New Member
Messages
44
Reaction score
0
Points
0
According to WordPress Codex, the_time is a tag used for displaying the time of a post. So it was a problem of my theme. Thanks again for your help, now it works as intended.
 

TonnyORG

I Code Things
Community Support
Messages
5,907
Reaction score
16
Points
38
Thread Closed

x10Closed.png
 
Status
Not open for further replies.
Top