Welcome Guest, Please Login or Register!
Register Search Today's Posts Mark Forums Read Support RL
Home Forum Aquarium Log Gallery Sponsors RHO Bookstore

Lighting Bug

Go Back   Reeflands Forum > General > Personal Aquarium Log Forum
Sponsored Links
Reply
 
LinkBack Thread Tools Display Modes
Old 04-11-2004, 11:58 AM   #1
Moderator
 
Poseidon's Avatar
 
Join Date: Sep 2001
Location: Swartz Creek, MI
Posts: 6,166
Send a message via AIM to Poseidon
Lighting Bug

http://www.reefland.com/myaqlog/main...ction=lighting

Notice the date the next change is due on my metal halides? It went BACK to 2002. But the change date on the VHO looks correct.
__________________
Need a Photographer?

Just say NO to CRABS

Mike
Poseidon is offline   Reply With Quote
Sponsored Links

Old 04-11-2004, 06:46 PM   #2
Owner
 
Join Date: Feb 2000
Location: Bardstown, KY
Posts: 12,999
Mike,

See what the dates show now and let me know if they are correct. Also could you tell me what you set as the change incriment (how many months) for both VHO and MH?

Thanks,
Scott Z.
Reefland is offline   Reply With Quote
Old 04-11-2004, 09:47 PM   #3
Moderator
 
Poseidon's Avatar
 
Join Date: Sep 2001
Location: Swartz Creek, MI
Posts: 6,166
Send a message via AIM to Poseidon
They are close...

I put 12 months on the Metal Halide and 24 months on the VHO... I use that just for color.

So my change dates should be 02-01-2005 and 06-01-2006... I think those are the I put in...
__________________
Need a Photographer?

Just say NO to CRABS

Mike
Poseidon is offline   Reply With Quote
Old 04-11-2004, 10:04 PM   #4
Owner
 
Join Date: Feb 2000
Location: Bardstown, KY
Posts: 12,999
And what do your change dates so (the day for the next change)?

Right now, the calculation is done as follows:
60secs * 60mins * 24hrs * 30days * number of months selected. I might have to rewrite that function to be more precise.

Scott Z.
Reefland is offline   Reply With Quote
Old 04-12-2004, 08:03 AM   #5
Moderator
 
Poseidon's Avatar
 
Join Date: Sep 2001
Location: Swartz Creek, MI
Posts: 6,166
Send a message via AIM to Poseidon
wouldn't months, days, hours, be enough? Since the drop down options start with months, seems that would be okay.

Quote:
And what do your change dates so (the day for the next change)?
I don't understand what you are asking here?

On the price issue, yes I did incluse the dollar sign. I just went into livestock and was able to edit the entry, but the price of the fish still shows zero...
__________________
Need a Photographer?

Just say NO to CRABS

Mike

Last edited by Poseidon; 04-12-2004 at 08:58 AM.
Poseidon is offline   Reply With Quote
Old 04-12-2004, 12:38 PM   #6
Owner
 
Join Date: Feb 2000
Location: Bardstown, KY
Posts: 12,999
Mike,

I think the problem you are having with the dollar amount is with the dollar sign. Do not include it and see what happens. For example: 15.00

I was just asking what the dates actually show for the next change for your MH and VHO bulbs. I think the problem there is you had entered the date as 01-01-01 (not the exact date, just the format) and I have it developed for 01/01/2001 so I think I might need to add some additional functionality there for multiple formats.

Scott Z.
Reefland is offline   Reply With Quote
Old 04-12-2004, 05:55 PM   #7
Moderator
 
Poseidon's Avatar
 
Join Date: Sep 2001
Location: Swartz Creek, MI
Posts: 6,166
Send a message via AIM to Poseidon
Yup the ($) was the problem, I enter the price with-out the sign and it works fine....

As far as the dates go, YES you are correct I did use 00-00-00 instead of 00/00/00... I think dual format would be a good idea there.
__________________
Need a Photographer?

Just say NO to CRABS

Mike
Poseidon is offline   Reply With Quote
Old 04-12-2004, 08:05 PM   #8
Owner
 
Join Date: Feb 2000
Location: Bardstown, KY
Posts: 12,999
Ok thanks. Perhaps adding a dollar sign in front of the text box will alleviate that problem or I can also strip it from the data before submitted to the db.

As for the dates, I will change it to accept both formats so until then, I am going to leave this bug open.

Scott Z.
Reefland is offline   Reply With Quote
Old 04-14-2004, 01:49 PM   #9
Owner
 
Join Date: Feb 2000
Location: Bardstown, KY
Posts: 12,999
$ sign is now stripped from the data input so that piece is fixed. Still leaving open until I fix the date function to work from multiple formats.

Scott Z.
Reefland is offline   Reply With Quote
Old 04-14-2004, 03:49 PM   #10
Contributing Member
 
Join Date: Mar 2004
Location: MI USA
Posts: 106
Quote:
Originally Posted by Reefland
$ sign is now stripped from the data input so that piece is fixed. Still leaving open until I fix the date function to work from multiple formats.

Scott Z.
Check out http://www.merlyn.demon.co.uk/js-date4.htm#test6 for some real nice Date validation code snippets, mainly javascript based. Might be something that will help out there.

Steve
SteveP is offline   Reply With Quote
Old 04-14-2004, 04:03 PM   #11
Owner
 
Join Date: Feb 2000
Location: Bardstown, KY
Posts: 12,999
Thanks Steve!

I think the key here will be to accept any date format:
m/d/yy
mm/dd/yyyy
mm/dd/yy
m-d-yy
mm-dd-yy
mm-dd-yyy

That way any of the inputed methods will be accepted versus a script that errors out and ask the user to correct it to only one of the formats. Thoughts?

Scott Z.
Reefland is offline   Reply With Quote
Old 04-14-2004, 09:16 PM   #12
Moderator
 
Poseidon's Avatar
 
Join Date: Sep 2001
Location: Swartz Creek, MI
Posts: 6,166
Send a message via AIM to Poseidon
I think you have it.... Except for those that use dd-mm-yy that live across the pond!!!

Maybe have a drop down to tell the board what format to expect the dates to be input? Is that even possible?
__________________
Need a Photographer?

Just say NO to CRABS

Mike
Poseidon is offline   Reply With Quote
Old 04-14-2004, 09:27 PM   #13
Owner
 
Join Date: Feb 2000
Location: Bardstown, KY
Posts: 12,999
Yeah that's a possibility too. I never considered that but maybe a drop down for day, month and year would be the best choice.
__________________
Scott Z.
75 Gallon Reef Log
Powered by Reefland's Personal Online Aquarium Log
Reefland is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Acro lighting! Pomme Reef Aquariums 13 01-14-2004 09:20 AM
Are we headed for a crash or is it lighting? dougchambers Reef Aquariums 4 04-02-2003 12:28 PM
58g RR lighting ?'s fletch Lighting 13 10-07-2002 11:25 PM
Lighting Colors CaptainK Lighting 2 07-22-2001 03:03 AM
Lighting Recommendations for 72-gal FOWLR / Possible Future Reef Tank Tarek Lighting 10 06-28-2001 12:12 PM


All times are GMT -4. The time now is 12:47 AM.



Powered by vBulletin® Version 3.7.0 Release Candidate 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76