Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 712409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:50:42+00:00 2026-05-14T04:50:42+00:00

I have a bizzare problem with php date function. code: $numDays = 8; $date

  • 0

I have a bizzare problem with php date function.

code:

$numDays = 8;
$date = strtotime('2010-11-06');
for ($i=1; $i<=$numDays; $i++)
{
    $thisDay = date("D, d M Y", $date);
    print ($thisDay.'<br>');
    $date+=86400; // add one day to timestamp
}

result on my server (local host, windows):

Sat, 06 Nov 2010

Sun, 07 Nov 2010

Mon, 08 Nov 2010

Tue, 09 Nov 2010

Wed, 10 Nov 2010

Thu, 11 Nov 2010

Fri, 12 Nov 2010

Sat, 13 Nov 2010

Result on my web server (linux)

Sat, 06 Nov 2010

*Sun, 07 Nov 2010

Sun, 07 Nov 2010*

Mon, 08 Nov 2010

Tue, 09 Nov 2010

Wed, 10 Nov 2010

Thu, 11 Nov 2010

Fri, 12 Nov 2010

Notice how Sun, 07 Nov 2010 appears twice on the remote server?? Why is this happening? can anyone explain this Behavior?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T04:50:43+00:00Added an answer on May 14, 2026 at 4:50 am

    November 7, 2010 is the DST switch date in many time zones (but not Greece where you seem to be located). From Wikipedia:

    Starting in 2007, most of the United States and Canada observe DST from the second Sunday in March to the first Sunday in November, almost two-thirds of the year.

    In Greece, it seems to be October 31. Which time zone do you have you set on your machine?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

have a php code like this,going to convert it in to C#. function isValid($n){
Have deployed numerous report parts which reference the same view however one of them
have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:
Xcode is doing something bizzare which I at one point in time fixed but
i have a bizzare issue with a program ive written where the command File.Exists()
The function WriteStartElement does not return anything. I find this a little bizzare. So
Have following listener for keyboard ArrowDown event(it's key code is 40 ): window.onload =
I have this bizzare behavior which I've never seen and don't understand. I'm going
Is there anyway to have more control over Report Manager, is seems bizzare for
If I have the following code: val wows = Buffer[Wow]() def yo(f: _ =>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.