Welcome to the Reef Forum.
+ Reply to Thread
Results 1 to 13 of 13

Thread: Lighting Bug

  1. #1
    Moderator Poseidon's Avatar
    Join Date
    Sep 2001
    Location
    Swartz Creek, MI
    Posts
    6,793
    Images
    450
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  2. #2
    Moderator
    Join Date
    Feb 2000
    Location
    Bardstown, KY
    Posts
    13,760
    Images
    51
    Thanks
    0
    Thanked 1 Time in 1 Post
    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.

  3. #3
    Moderator Poseidon's Avatar
    Join Date
    Sep 2001
    Location
    Swartz Creek, MI
    Posts
    6,793
    Images
    450
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  4. #4
    Moderator
    Join Date
    Feb 2000
    Location
    Bardstown, KY
    Posts
    13,760
    Images
    51
    Thanks
    0
    Thanked 1 Time in 1 Post
    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.

  5. #5
    Moderator Poseidon's Avatar
    Join Date
    Sep 2001
    Location
    Swartz Creek, MI
    Posts
    6,793
    Images
    450
    Thanks
    0
    Thanked 0 Times in 0 Posts
    wouldn't months, days, hours, be enough? Since the drop down options start with months, seems that would be okay.

    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...
    Last edited by Poseidon; 04-12-2004 at 08:58 AM.
    Need a Photographer?

    Just say NO to CRABS

    Mike

  6. #6
    Moderator
    Join Date
    Feb 2000
    Location
    Bardstown, KY
    Posts
    13,760
    Images
    51
    Thanks
    0
    Thanked 1 Time in 1 Post
    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.

  7. #7
    Moderator Poseidon's Avatar
    Join Date
    Sep 2001
    Location
    Swartz Creek, MI
    Posts
    6,793
    Images
    450
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  8. #8
    Moderator
    Join Date
    Feb 2000
    Location
    Bardstown, KY
    Posts
    13,760
    Images
    51
    Thanks
    0
    Thanked 1 Time in 1 Post
    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.

  9. #9
    Moderator
    Join Date
    Feb 2000
    Location
    Bardstown, KY
    Posts
    13,760
    Images
    51
    Thanks
    0
    Thanked 1 Time in 1 Post
    $ 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.

  10. #10
    Contributing Member

    Join Date
    Mar 2004
    Location
    MI USA
    Posts
    106
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  11. #11
    Moderator
    Join Date
    Feb 2000
    Location
    Bardstown, KY
    Posts
    13,760
    Images
    51
    Thanks
    0
    Thanked 1 Time in 1 Post
    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.

  12. #12
    Moderator Poseidon's Avatar
    Join Date
    Sep 2001
    Location
    Swartz Creek, MI
    Posts
    6,793
    Images
    450
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  13. #13
    Moderator
    Join Date
    Feb 2000
    Location
    Bardstown, KY
    Posts
    13,760
    Images
    51
    Thanks
    0
    Thanked 1 Time in 1 Post
    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


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Acro lighting!
    By Pomme in forum Reef Aquariums
    Replies: 13
    Last Post: 01-14-2004, 09:20 AM
  2. Are we headed for a crash or is it lighting?
    By dougchambers in forum Reef Aquariums
    Replies: 4
    Last Post: 04-02-2003, 12:28 PM
  3. 58g RR lighting ?'s
    By fletch in forum Lighting
    Replies: 13
    Last Post: 10-07-2002, 11:25 PM
  4. Lighting Colors
    By CaptainK in forum Lighting
    Replies: 2
    Last Post: 07-22-2001, 03:03 AM
  5. Replies: 10
    Last Post: 06-28-2001, 12:12 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107