eAuction
  Not just another Perl script
Google
Welcome, Guest. Please Login or Register


If you use eAuction a lot and like it or if you make money from eAuction or from eAuction-related activities ...
then the project asks you for a donation in favor of the further development.



The forums are protected by
AccessControl
(written by Dieter Werner)
Click here if you want to check your IP against the most important RBLs of the net.
Click here in order to visite the AccessControl forums.


<< Visit the international e Auction Marketplace >>
Buy and sell PC and Consumer Electronic components






  HomeHelpSearchLoginRegister
 



Pages: 1 2 3 4 
Default Ending Date (Read 1578 times)
annetappe
eAuction User
**
Offline

I Love To Learn

Posts: 36
MidSouth
Gender: female
Re: Default Ending Date
Reply #3 - 01/03/06 at 04:12:26
 
I studied hard the section you referred me to along with how you were converting from days to Month/Day but I still can not see how to (without disrupting the original code much) simply just be able to enter a Default Future Closing Date by Month/Day instead of Days Only.

Maybe if I explained the purpose again it would help.....

[] I would like to have an Auction Event once or twice a year (as a fund raiser for non-profit school) and be able to enter the items and have them ALL end on a certain future date and time.  I can do this now with your features but I would have to enter the 'number of days' which will be different each day I enter a new auction item.

[] I was hoping there would be some simple way to just manually set the 'certain future closing date as [Month/Day/Year?] & closing time as [hh/mm/ss]' as variables within the config file and the remainder of the script would run as normal.

It is probably in front of my eyes and I am not seeing it.

Any help would be appreciated.  Maybe I am the only one seeing how to use your script in this manner and not worth the time.
Back to top
 
 


Advertising
View Profile   IP Logged
Dieter Werner
Administrator
*****
Offline

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: Default Ending Date
Reply #4 - 01/03/06 at 13:50:56
 
Search eAuction.pl for 'sub proc_new'
Search 'sub proc_new' for Code:
    $close_time = get_the_time(
       $form{'DAYS'},
       $form{'HOUR'},
       $form{'MIN'},
       $form{'SEC'}
   ); # Servertime 



Replace the found function with Code:
    #$close_time = get_the_time(
   #    $form{'DAYS'},
   #    $form{'HOUR'},
   #    $form{'MIN'},
   #    $form{'SEC'}
   #); # Servertime

   use Time::Local;

   my $month = 2;
   my $mday = 14;
   my $year = 2006;

   my $hour = 22;
   my $min = 0;
   my $sec = 0;    
   
   $close_time = timelocal($sec, $min, $hour, $mday, ($month - 1), $year); 



The code will set the constant close_time:
14/02/2006 22:00:00

I hope it helps ...  Smiley
Back to top
 
 

Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!


Greetings from Germany
Dieter Werner




Advertising
View Profile | WWW   IP Logged
annetappe
eAuction User
**
Offline

I Love To Learn

Posts: 36
MidSouth
Gender: female
Re: Default Ending Date
Reply #5 - 01/03/06 at 15:43:55
 
Thank you again.
I will try this evening.
Back to top
 
 


Advertising
View Profile   IP Logged
Pages: 1 2 3 4 


If you like eAuction, please Rate it.
If you don't like eAuction, please Rate it too.


1 is being poor and 10 is being excellent


EveryScript

ip-location


AccessControl - Members Only