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)
Dieter Werner
Administrator
*****
Offline

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: Default Ending Date
Reply #6 - 01/03/06 at 17:13:32
 
annetappe wrote on 01/03/06 at 15:43:55:
I will try this evening.

Feel free to come back to the topic if you should run in any trouble.
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 #7 - 01/03/06 at 21:18:25
 
Executed ok but small error:

[Modified section]==========begin=== 2/10/06, 17:00:00
   #modfied below per DW to allow default close date and time
   #$close_time = get_the_time(
   #    $form{'DAYS'},
   #    $form{'HOUR'},
   #    $form{'MIN'},
   #    $form{'SEC'}
   #); # Servertime

   use Time::Local;

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

   my $hour = 17;
   my $min = 0;
   my $sec = 0;    
   
   $close_time = timelocal($sec, $min, $hour, $mday, ($month - 1), $year);
   #modified above per DW to allow default close date and time
[Modified section]==========end===

*When I posted New Item I did not enter anything at start/close date.  When posted, the 'closing time' is 16:00, not 17:00.

*No problem to 'adjust' closing time in script if that would be simple solution.

*I modified the maximum days that I could pre-post to 60 days per your previous posts and it was showing prior to this Mod but now is zero after Mod.

I had set you up a login that I will send PM if you would like to try posted new item.  You can not hurt anything on this site so feel free to try it.

Back to top
 
 


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

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: Default Ending Date
Reply #8 - 01/04/06 at 10:02:47
 
In order to adjust the time ...
change this
Code:
$close_time = timelocal($sec, $min, $hour, $mday, ($month - 1), $year); 


into this
Code:
$close_time = timelocal($sec, $min, ($hour + 1), $mday, ($month - 1), $year); 


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
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