Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - yesterday bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

yesterday bug

 Post Reply Post Reply
Author
peter123 View Drop Down
Newbie
Newbie


Joined: 18 March 2007
Location: Slovenia
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote peter123 Quote  Post ReplyReply Direct Link To This Post Topic: yesterday bug
    Posted: 01 October 2008 at 7:41am
Today is 1. october, for posts from yesterday is date 30. september not "Yesterday".
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2008 at 8:09am
This is correct. The date is shown as the date instead of 'Yesterday' when the month rolls over to the 1st of the next month.

When the 'Yesterday' and 'Today' system of dates was introduced many days were spent on this to get 'Yesterday' to show as the date when it rolled over to the 1st of the next month, however due to the calendar system with it's different number of days to each month as well as leap years it was found to difficult to program without 100's of lines of extra code which would adversely effect performance.
Back to Top
peter123 View Drop Down
Newbie
Newbie


Joined: 18 March 2007
Location: Slovenia
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote peter123 Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2008 at 9:03am
Ok, I didn know. Thx for answer.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.