| Author |
Topic Search Topic Options
|
sfd19
Senior Member
Joined: 20 December 2004
Status: Offline
Points: 263
|
Post Options
Thanks(0)
Quote Reply
Posted: 20 January 2005 at 8:06pm |
martionline wrote:
in common.asp line 56
'Set the date time format to your own if you are getting a CDATE error 'Session.LCID = 1033 ==>make this Session.LCID = 1033 erase single quota |
That does not help when you have already stored edited dates in different formats in your database (by changing the host, for example). Then you either have to run a query against the database that re-formats the edited date in all posts or you can use my code above.
The Session.LCID only applies to new posts. Not to already stored ones.
|
|
|
 |
rdfonseca
Newbie
Joined: 27 January 2005
Location: Portugal
Status: Offline
Points: 2
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 January 2005 at 8:12am |
My error is:
Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: 'CDate' /website/forum/default.asp, line 154
|
 |
b_w_t
Newbie
Joined: 28 January 2005
Location: Netherlands
Status: Offline
Points: 6
|
Post Options
Thanks(0)
Quote Reply
Posted: 28 January 2005 at 4:22pm |
sfd19 wrote:
We had the same problem after switching from an American server to a German server and then back to an American. It was annoying
Right before this line in /functions/functions_format_post.asp
If isNumeric(dtmEditedDate) Then dtmEditedDate = CDate(dtmEditedDate) Else dtmEditedDate = 0
add a new line.
When your server is using "." in the date format (eg German servers) then add
dtmEditedDate = Replace(dtmEditedDate,",",".")
or when your server is using "," in the date format (eg American servers) then add
dtmEditedDate = Replace(dtmEditedDate,".",",")
When you are not sure what format your current server is using then check for a message in your database that has been edited with the current server settings and see if that server is using "," or "." in the number of the edited date. Then apply the fitting code line from above.
That should help. |
This solved my problem too after I had re-located my website to a european server.
|
 |
sfd19
Senior Member
Joined: 20 December 2004
Status: Offline
Points: 263
|
Post Options
Thanks(0)
Quote Reply
Posted: 28 January 2005 at 7:44pm |
|
It should solve all problems with forums that were moved from one region to another.
|
|
|
 |
sfd19
Senior Member
Joined: 20 December 2004
Status: Offline
Points: 263
|
Post Options
Thanks(0)
Quote Reply
Posted: 03 February 2005 at 8:19pm |
rdfonseca wrote:
My error is:
Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: 'CDate' /website/forum/default.asp, line 154
|
Clear your cookies. You have stored a cookie with a different date format on your computer than the one the server is using.
|
|
|
 |
TomBrien
Newbie
Joined: 01 May 2005
Status: Offline
Points: 1
|
Post Options
Thanks(0)
Quote Reply
Posted: 01 May 2005 at 4:28pm |
Ok my problem is:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'CDate'
/forum4/common.asp, line 448
I have tried editting the common.asp files and clearing cookies no luck. Any one have any ideas?
Tom
|
 |