Loading. Please Wait... 
 |
 |
 |
Tearlow's Auction Countdown Timer, Want to have a Countdown on your Auction? |
|
Mar 5 2011, 19:36
|
grumpymal
Group: Gold Star Club
Posts: 10,923
Joined: 2-April 08

|
QUOTE(Dlaglacz @ Mar 5 2011, 04:45)  Perhaps the parser is assumming that '08' is an octal base number? In C/C++ , numbers starting with 0x are hexadecimal, numbers starting with 0 are octal, number starting with other digits are decimal. See for example here on numerical bases: [ www.cplusplus.com] http://www.cplusplus.com/doc/hex/Probably, since parseInt() has a radix parameter that assumes the base is octal if the string starts with 0. Technically, I don't even really need to parse them as numbers since the url doesn't care whether its an int or char/string and I'm reassembling them into a string anyway.
|
|
|
|
 |
|
Mar 8 2011, 04:00
|
Tearlow
Group: Catgirl Camarilla
Posts: 244
Joined: 16-October 09

|
Why the heck won't this forum send me an email to me when people post in subscribed topics? I will look into this issue later on. But this really does look out of order... CODE if ($detail == 1) $years = round($cdown/YSECS); else $years = floor($cdown/YSECS); $cdown %= YSECS; if ($detail == 2) $days = round($cdown/DSECS); else $days = floor($cdown/DSECS); $cdown %= DSECS; if ($detail == 3) $hours = round($cdown/HSECS); else $hours = floor($cdown/HSECS); $cdown %= HSECS; if ($detail == 4) $minutes = round($cdown/MSECS); else $minutes = floor($cdown/MSECS); $cdown %= MSECS;
I really don't see how that can mess up dates though. Like I said, I will look into it a bit later as im heading to bed now. This post has been edited by Tearlow: Mar 8 2011, 04:05
|
|
|
|
 |
|
Mar 8 2011, 04:04
|
grumpymal
Group: Gold Star Club
Posts: 10,923
Joined: 2-April 08

|
There's nothing wrong with the timer on your end, its a thing with my script and its been resolved. You'll need to change the link in the OP, though, and I'll probably have to post another update to deal with DST, depending on how I decide to go about it.
|
|
|
Mar 8 2011, 04:16
|
Tearlow
Group: Catgirl Camarilla
Posts: 244
Joined: 16-October 09

|
Actually I tested it straight away and saw the link was broken so It's already fixed (IMG:[ invalid] style_emoticons/default/smile.gif)
|
|
|
Apr 1 2011, 00:34
|
Sayo Aisaka
Group: Members
Posts: 4,556
Joined: 27-September 08

|
Works for me, must be a problem on your end.
|
|
|
Apr 1 2011, 14:52
|
KamuiSeph
Group: Gold Star Club
Posts: 2,076
Joined: 29-August 08

|
FUCKING finally. Apparently NOD32 hates the shit out of the auction clock.
FUCK YOU NOD
This post has been edited by (Cheater) KamuiSeph: Apr 1 2011, 15:03
|
|
|
Apr 1 2011, 23:02
|
hitokiri84
Group: Gold Star Club
Posts: 10,945
Joined: 24-December 07

|
There seems to be an error in the script now. It's off by an hour.
|
|
|
Apr 1 2011, 23:29
|
grumpymal
Group: Gold Star Club
Posts: 10,923
Joined: 2-April 08

|
QUOTE(hitokiri84 @ Apr 1 2011, 17:02)  There seems to be an error in the script now. It's off by an hour.
Probably DST shenanigans. Can you be more specific than "off by an hour". I can't really diagnose a bug from just that.
|
|
|
|
 |
|
Apr 1 2011, 23:32
|
hitokiri84
Group: Gold Star Club
Posts: 10,945
Joined: 24-December 07

|
QUOTE QUOTE Hey there, just thought I'd let you know, your auction counter is off by 2 hours. According to the auction time, there's a little over 3 hours left. That would put the end of your auction at 23:00 UTC on April 1st. I believe your auction description says the auction should end at 01:00 UTC April 2nd. Well when I looked at it, it was off by one hour. It seems to be an error in the timer script all of a sudden, because it's definitely set for April 2nd UTC 01:00:00. CODE http://thenexus.servegame.com/E-Hentai/EH-Cdwn.png?auctionname=This%20Auction%20Ends%20In&month=4&day=2&year=2011&hour=1&minute=00&expire=This%20Auction%20Has%20Expired (IMG:[ thenexus.servegame.com] http://thenexus.servegame.com/E-Hentai/EH-Cdwn.png?auctionname=This%20Auction%20Ends%20In&month=4&day=2&year=2011&hour=1&minute=00&expire=This%20Auction%20Has%20Expired) As you can see, the timer is showing UTC 00:00:00, not 01:00:00. This post has been edited by hitokiri84: Apr 1 2011, 23:34
|
|
|
|
 |
|
Apr 1 2011, 23:52
|
Sayo Aisaka
Group: Members
Posts: 4,556
Joined: 27-September 08

|
Seems to be running on British Summer Time (GMT+1) or some equivalent. Our clocks went forward at the start of this week.
|
|
|
|
 |
|
Apr 1 2011, 23:56
|
grumpymal
Group: Gold Star Club
Posts: 10,923
Joined: 2-April 08

|
QUOTE(hitokiri84 @ Apr 1 2011, 17:32)  Well when I looked at it, it was off by one hour. It seems to be an error in the timer script all of a sudden, because it's definitely set for April 2nd UTC 01:00:00. CODE http://thenexus.servegame.com/E-Hentai/EH-Cdwn.png?auctionname=This%20Auction%20Ends%20In&month=4&day=2&year=2011&hour=1&minute=00&expire=This%20Auction%20Has%20Expired (IMG:[ thenexus.servegame.com] http://thenexus.servegame.com/E-Hentai/EH-Cdwn.png?auctionname=This%20Auction%20Ends%20In&month=4&day=2&year=2011&hour=1&minute=00&expire=This%20Auction%20Has%20Expired) As you can see, the timer is showing UTC 00:00:00, not 01:00:00. I have no idea. That shouldn't be an issue with the script, since it works fairly simply whenever UTC is used (none of this timezone to mess with). Manually configuring the link results in the same thing, so this may be something on the backend. We'll have to wait for Tearlow to take a look at it. My guess is it is DST shenanigans. QUOTE(Sayo Aisaka @ Apr 1 2011, 17:52)  Seems to be running on British Summer Time (GMT+1) or some equivalent. Our clocks went forward at the start of this week.
Yep, probably DST shenanigans. This post has been edited by cmal: Apr 1 2011, 23:57
|
|
|
|
 |
|
Apr 6 2011, 09:52
|
Tearlow
Group: Catgirl Camarilla
Posts: 244
Joined: 16-October 09

|
Sorry guys! But for some reason this forum just don't like me much as it wont send me notifications on replies!
Yes- The server is running on a GMT+1 area where DST is active during 27 Mar - 30 Oct. I guess I could either add a function to counter this if it's needed. I think most of us Hate DST unless it pushes us back an hour *Chuckles*
|
|
|
Apr 7 2011, 00:59
|
Tearlow
Group: Catgirl Camarilla
Posts: 244
Joined: 16-October 09

|
Alright. The fix is in the pipeline. The more people that test this little thing and see if anything is wrong is more then apriciated. I think It's nailed though. [ thenexus.servegame.com] http://thenexus.servegame.com/E-Hentai/lab...0&seconds=0Change the 0's to add time. There is no real function to decrease yet. Just remember this is a simple test to test first.
|
|
|
|
 |
|
Apr 7 2011, 10:25
|
Tearlow
Group: Catgirl Camarilla
Posts: 244
Joined: 16-October 09

|
This may turn into a full rewrite as I've used some odd timer functions here *Chuckles* [ thenexus.servegame.com] Testing AreaThis should now be fully customizable- This link will both add and subtract time within the same function. Go ahead and give it a spin and see if you find any errors- Otherwise I will implement this in the lab version of the timer and then make a full release out of it. EDIT: Added all options. Now I just need to wait for anyone to reply back how it goes. This post has been edited by Tearlow: Apr 7 2011, 10:49
|
|
|
Apr 22 2011, 01:11
|
Azure009
Lurker
Group: Lurkers
Posts: 1
Joined: 28-March 11

|
I think it pointless but I want to change the title to give update style
|
|
|
Jul 27 2011, 09:42
|
Tearlow
Group: Catgirl Camarilla
Posts: 244
Joined: 16-October 09

|
Hey, Today there might be some issues with my script as I'am working on implementing my new domain. Right now the old domain is running as a Virtual domain- This should work though. I've not gotten any problem reports lately from anyone so should I expect the script itself have been running as it should? Does the UTC conversion work better now? Cheers guys/gals (IMG:[ invalid] style_emoticons/default/wink.gif) EDIT: *Cough* The new domain that will eventually take full effect will be "DarknessFall.com" This post has been edited by Tearlow: Jul 27 2011, 09:44
|
|
|
|
 |
|
Jul 28 2011, 00:18
|
grumpymal
Group: Gold Star Club
Posts: 10,923
Joined: 2-April 08

|
Its been disappearing here and there, but no real problems. I think time is still off, though (when I last made a counter the other day, you might have changed it since then), since I had to add an hour to get UTC 00:00.
Just let us know when to change links accordingly.
|
|
|
|
 |
|
Jul 28 2011, 15:53
|
Tearlow
Group: Catgirl Camarilla
Posts: 244
Joined: 16-October 09

|
QUOTE(cmal @ Jul 28 2011, 00:18)  Its been disappearing here and there, but no real problems. I think time is still off, though (when I last made a counter the other day, you might have changed it since then), since I had to add an hour to get UTC 00:00.
Just let us know when to change links accordingly.
To my knowledge my server should only been down 2-3 times. One due to Power outage and 2-3 due to Updates requiering reboots. Otherwise I guess my ISP could have gone down at times- As long as It's not for too long it's all good but do shout if it is down for longer periods. Also, I applied an Update, 1.0.3.3, this should Squash the darned UTC Bug as I changed the way I calculate time, Hopefully this should also stop the GMT+1 to be applied as well. Could I hear if it works as intended? (IMG:[ invalid] style_emoticons/default/smile.gif) Oh, Don't forget the template support was added- There are currently only three I think that you can use though. EDIT: How odd, Karma+ don't have reserves anymore? I remember training up my 50% save... This post has been edited by Tearlow: Jul 28 2011, 15:59
|
|
|
|
 |
|
Jul 28 2011, 23:40
|
grumpymal
Group: Gold Star Club
Posts: 10,923
Joined: 2-April 08

|
Yeah, I was guessing that the disappearances, which were brief and pretty sparse, were due to server downtime.
And the DST thing is fixed. Good work.
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|
|
|