Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 173
Total: 173

Author Topic: Leap Year bug  (Read 2993 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: 16436
    • 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
5428 Views
Last post July 01, 2008, 02:47:02 am
by AbsoluteBreeze
5 Replies
11983 Views
Last post November 27, 2016, 09:46:22 pm
by PyroTech03
1 Replies
10059 Views
Last post December 26, 2020, 11:50:59 pm
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal