Home arrow Forum

Remository Forum

 


Harry

 
date error - 2005/07/20 01:51 Hello,

the last problem was solved. Finally did the download and installation.

Now I discovered this little error.
I using the german language. renamed germf to german.


Veröffentlicht: Ja
Kurzbeschreibung: gfgfgf

Warning: date() [function.date]: Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in C:apachefriendsxampphtdocsrepositorycomponentscom_remositoryremository.html.php on line 403
Vorgeschlagen am:
Dateigröße: 11 MB
Downloads: 1


how can I change that or workaround.

Thanks Harry
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 101  
Re:date error - 2005/07/20 19:07 Sorry you have found a problem with dates. I'm afraid there is an area of work for me there. The difficulty is that Remository 3.20 has attempted to use the MySQL feature of timestamps, which should be more or less automatic. However, the implementation of timestamps is different between versions of MySQL, and although I included some checks on the version number, it looks as if it is still not working in all circumstances.

I will rework the whole of the submit date logic over the next few days, and hope to have a better version by the end of the week.

While you are testing, it is useful to see all warnings as they give a clue to errors. But if you want to look better, you could change line 18 of remository.php by commenting it out. Insert // at the beginning of the line to get the default level of error reporting rather than forcing the highest level. You might also need to change your own PHP config options a bit. It is risky showing warnings in live operation as quite a few Mambo modules/components generate them. I try to completely eliminate them from Remository and do all my own testing with the highest level of error reporting.
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
Alpaca

Karma: 6  
Re:date error - 2005/07/26 00:13 Seems like I am stuck an the same point, i.e. the frontend file listing. Some environment info:

PHP built On: Windows NT 5.0 build 2195
Database Version: 4.1.7-nt
PHP Version: 4.3.6
Web Server: Microsoft-IIS/5.0
"You can call me Al."

Joomla! ...because open source matters
Leave a rating for Remository at the Joomla! Extensions Directory!
  | | Sorry, you do not currently have permission to write here.
Alpaca

Karma: 6  
Re:date error - 2005/07/26 16:02 In 3.20b2 I still get:

Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in componentscom_remositoryremository.html.php on line 403

for each file in the file list.
"You can call me Al."

Joomla! ...because open source matters
Leave a rating for Remository at the Joomla! Extensions Directory!
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 101  
Re:date error - 2005/07/26 16:23 Are those new files created with 3.20 beta 2 or are they files that were created before?

Beta 2 will not correct files that have an incorrect submit date - you will need to alter them either through the admin interface to list files and then edit, or by writing a bit of SQL and using phpMyAdmin or similar. If you would like any help with the SQL, let me know.
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
Alpaca

Karma: 6  
Re:date error - 2005/07/26 19:56 Those are "old" files. I was under the impression that Remository would set the submit date by itself when using "Handle Unlinked Files". Unfortunately, the admin interface cannot be used to set the submit date. The only date listed is the file date. I will try my luck with phpMyAdmin. "You can call me Al."

Joomla! ...because open source matters
Leave a rating for Remository at the Joomla! Extensions Directory!
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 101  
Re:date error - 2005/07/27 15:44 IMPORTANT NOTE - there is now an assumption that people are re-installing Remository with each new version, rather than copying the program files. Now that the database is preserved through uninstall and reinstall, this is the best approach. It also allows the install routine to do any needed tidying up.

1) A general point to make is that there is code within the installation routine that makes changes to the database tables in order to fix the date problems. It abandons the use of the MySQL timestamp, which in theory is very useful for such purposes. In practice, the different treatment of timestamps (both in DB creation and also in access) have made it a real problem. So all timestamps are now DATETIME fields with code to set them.

2) I will put code in the next release to reset any submit dates that are zero to today's date. If you need that code before the next release is made public, let me know.
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
Alpaca

Karma: 6  
Re:date error - 2005/07/27 15:56 admin wrote:
2) I will put code in the next release to reset any submit dates that are zero to today's date. If you need that code before the next release is made public, let me know.
That would be very helpful provided the file date remains the leading date in Remository (e.g. for Remository Newest). Thanks in advance!
"You can call me Al."

Joomla! ...because open source matters
Leave a rating for Remository at the Joomla! Extensions Directory!
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 101  
Re:date error - 2005/07/27 16:00 It will, although file date has drawbacks:

1) For remote files (indicated by URL) it depends on user input

2) For local files, the upload process seems to always set the file date to today's date, there appears to be no way to preserve the file date from the user's original file.
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.

Login

Subscribe to Premium Support

Get priority support for Remository and Glossary, sign up now for a Premium Support monthly subscription:

Your Remository user name

Or purchase a year's support:

Your Remository user name

Recommended SEF

SEF Advance

Who is Online

Remository welcomes guests and visitors

We have 9 guest online