Facebook 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4287
Latest: ArromGomwef
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43770
Total Topics: 7598
Most Online Today: 96
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 48
Total: 48

Author Topic: Leap Year bug  (Read 3438 times)

0 Members and 1 Guest are viewing this topic.

Offline 3dphoto

  • Member
  • *
  • Posts: 10
    • View Profile
Leap Year bug
« on: January 31, 2016, 10:56:56 pm »
Minor issue- I cannot select Feb 29th as a termination date for an ad- it forces it to be February 28th.  This is a leap year... might want to add that check for February dates. :)

Thanks,
Jeff

Offline 3dphoto

  • Member
  • *
  • Posts: 10
    • View Profile
Re: Leap Year bug
« Reply #1 on: January 31, 2016, 11:17:11 pm »
I'm reassessing this- I set another ad to run Feb 1-7, but it showed it would terminate on Feb 6.  So I went back and edited the one ending in February, and set it to Feb 30, and it showed Feb 29.  So it's set to n-1.  I'm not sure if that's a bug or design, but having to set a date to Feb 30 to get Feb 29 doesn't make sense, necessarily.  I just checked- it snapped Feb 30 to Mar 1 after I saved it.

Anyway- so I take it that if I set a date range of Feb 1-Feb 7, at Feb 7 00:00 time it stops?

Thanks,
Jeff

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16664
    • View Profile
Re: Leap Year bug
« Reply #2 on: February 01, 2016, 10:56:22 am »
Made a change. Copy the attached file to your sources folder try it out and let me know. For SMF 2.0.x
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline 3dphoto

  • Member
  • *
  • Posts: 10
    • View Profile
Re: Leap Year bug
« Reply #3 on: February 01, 2016, 07:43:03 pm »
Thanks for the quick turnaround!  Yes- once I touch the ad and save it again, it fixes the date.

Jeff

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
5544 Views
Last post July 01, 2008, 02:47:02 am
by AbsoluteBreeze
5 Replies
12533 Views
Last post November 27, 2016, 09:46:22 pm
by PyroTech03
1 Replies
10566 Views
Last post December 26, 2020, 11:50:59 pm
by SMFHacks

+- Recent Topics

Search results items per page? by SMFHacks
April 18, 2025, 04:12:23 pm

Trying to access array offset on null by SMFHacks
April 09, 2025, 07:39:10 am

Suggestions and request by Senkusha
April 03, 2025, 02:30:43 pm

How does a member add a Classified Listing? by SMFHacks
March 28, 2025, 08:05:50 pm

Auto converting to webp or AVIF by [chrisB]
March 28, 2025, 01:46:00 pm

Thumbnail creation settings by SMFHacks
March 28, 2025, 12:42:51 pm

Cookie consent banner? by SMFHacks
March 26, 2025, 02:19:49 pm

Bulk Upload Frozen by SMFHacks
March 26, 2025, 07:58:13 am

Community suite buying question by SMFHacks
March 25, 2025, 11:26:20 am

Downloading with Zero Credits? by SMFHacks
March 23, 2025, 01:40:50 pm

Powered by EzPortal