GetDotted Domains

Viewing Thread:
"PHP Problem (built-in date function)"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Thu 10/04/03 at 20:53
Regular
Posts: 787
Well, I've created a little Calendar, but for some which I can't figure out, October 2003 repeats the 26th twice for some reason.

The working script is
http://www.chrisjhaig.co.uk/Calendar.php

The source is:
http://www.chrisjhaig.co.uk/Calendar.txt

Could anyone give any indication as to why the 26th is displayed twice??

Thanks to anyone who might be able to help.
Fri 11/04/03 at 23:08
Regular
"Eff, you see, kay?"
Posts: 14,156
I think it's a general shortsightedness-of-the-programming-world problem to be honest :)
Fri 11/04/03 at 17:13
Regular
"It goes so quickly"
Posts: 4,083
Yes, that is when the world will end, so didn't see the point in going past that :)

Apparently, on reading into it, PHP doesn't like dates past 2037 ... which is, strange.

So, its the PHP people's fault, not mine :)
Fri 11/04/03 at 16:25
Regular
"MildlyAmusing.co.uk"
Posts: 5,029
Your dates appear to stop in 2038. Are you expecting the world to stop then?

;-)

Nice calender though, better than anything I could do *self-pity*
Fri 11/04/03 at 15:05
Regular
Posts: 16,558
its a calendar with colours.
Fri 11/04/03 at 14:54
Regular
"It goes so quickly"
Posts: 4,083
ok, just altered it slightly, wouldn't mind any comments on it as a basic calendar if anyone is about??

Thanks.
Fri 11/04/03 at 12:33
Regular
"It goes so quickly"
Posts: 4,083
Nice one :c)

Thanks for that, seems to be working as intended now :c)

Thanks again :c)
Fri 11/04/03 at 10:36
Regular
"Chavez, just hush.."
Posts: 11,080
Look at all the smileys!

Shame they've got no noses...

:c)
Fri 11/04/03 at 09:48
Regular
"It goes so quickly"
Posts: 4,083
Nice one :)

Thanks for that, seems to be working as intended now :)

Thanks again :)
Fri 11/04/03 at 00:34
Regular
"Devil in disguise"
Posts: 3,151
cjh wrote:
> Could anyone give any indication as to why the 26th is displayed
> twice??
>

Try changing

$Start = mktime(0, 0, 0, $Month, 1, $Year);

to something like

$Start = mktime(1, 0, 0, $Month, 1, $Year);

ie, don't create a point in time where no time has passed for that particular day.
Thu 10/04/03 at 22:21
Regular
Posts: 16,558
Hmm that seems like some tables with dates fitted in them o.O

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

First Class!
I feel that your service on this occasion was absolutely first class - a model of excellence. After this, I hope to stay with Freeola for a long time!
LOVE it....
You have made it so easy to build & host a website!!!
Gemma

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.