Jump to content

Domains registered on February 29th


Recommended Posts

This was already discussed in this closed thread, but no mention was made as to whether this was officially acknowledged as a bug.

 

I have a domain that was registered via the Enom module on February 29th, 2008. The dates were set up incorrectly as follows:

 

Expiration: 03/01/2009, but should have been 02/28/2009.

 

Next due: 00/00/2010, should have been 02/28/2008.

 

Seems like a bug with leap year logic. Luckily, there are 3.75 years left to get it fixed.

Link to comment
Share on other sites

Well, yeah, I know there are a variety of ways to correct the data. I'm just pointing out that there is a bug in the registration code that should be corrected.

 

Since you mention it chickendippers - have you actually used the DirectI sync, and then gone back and compared the DirectI dates after running the sync? Here's why I ask:

 

DirectI stores a Date AND Time for expiration. If you've ever noticed, and depending on your time zone, you may show 05/31/2008 as an expiration date in WHMCS, whereas in whois you see 06/01/2008.

 

We're UTC -5 at the moment. If a customer registers a domain name at 8:00PM our time today, the actual expiration time at DirectI will show as 1:00AM tomorrow (UTC).

 

I am concerned that the sync script may not take into consideration that DirectI takes expiration down to the minute, and I'll end up with some dates that are off. For this reason, I haven't tried to use it yet.

 

If there is a problem, what will then happen is, for the above example, if the customer doesn't renew early, the domain will actually expire before WHMCS renews it. We run the cron at 1PM - (more likely that authnet will always be up at that time) - so if the date is set to whatever DirectI spits out in UTC, we could have a domain expire at 8PM, and not get renewed by WHMCS until 17 hours later, 1PM the following day.

Link to comment
Share on other sites

  • WHMCS CEO

And in answer to the original question, there doesn't appear to be a bug that means the data is set wrong for domains registered during the leap year day - not by WHMCS anyway. All date calculations are done by PHP so should there be any errors, it would be the PHP date manipulation tools that have them and then I would suspect only certain PHP versions are affected. Setting the next due to the 1st March would be the full 365 days (1 year).

 

Matt

Link to comment
Share on other sites

Setting to March 1st doesn't match what the registrar set the due date to, so if nothing else, the logic should do whatever the registrar is doing. We obviously should have the correct expiry date, though as has been mentioned the sync script can correct that.

 

However, the next due date was set to 00/00/2010 instead of 02/28/2009, (or 03/01/2009 if WHMCS doesn't set the date exactly like the registrar). Surely there is a error there?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated