Print Page | Close Window

Complicated CDATE Problem

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=17345
Printed Date: 16 April 2026 at 2:37am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Complicated CDATE Problem
Posted By: hgurol
Subject: Complicated CDATE Problem
Date Posted: 25 November 2005 at 1:41pm
Hello,
 
Im running version 7.9 on msSQL. I was hosting my site on a English set server(US). I have set my SQL collation as Turkish, manually added Turkish Codepage directive on every page and the Turkish meta tags was inplace, as well as the Turkish LCID setting. I thought that I have totally configured my forum to work with Turkish characters and date/time settings. Never had a problem for the last 1.5 years.
 
Recently I have moved my site on a Turkish server. When I say Turkish server actually it is an English Windows Server with Turkish Regional Settings configured. Now the problems Im having is with the edited posts. Not the new posts that are being edit after the move, but the older posts that have been edited while on the English set server are returning Type mismatch: 'CDATE' error.
 
After following a few asp pages for debugging(with my poor programing knowledge), I guess I have figured out the problem. The time of the edit action is not directly kept on the database but it is attached to the end of the each post as a string. A function parses that string and convert it to the date/time format to display it. The numeric string Im talking about is a little allien to me since the string is something like "38371.8296759259" however it converts to date like "19.01.2005 19:54:44".
 
What I believe is the function(s) that writes and reads that string is somehow regional setting depended. Well honestly I must say that Im a little disapponted if it is regional settings depanded after all that CodePage and LCID settings configured. And since the US date format on the old server was MM/DD/YYYY and the new date format on my Turkish server is DD/MM/YYYY the function parses that string is messing up all of my previously edited posts.
 
...so what you think about my issue? What can be the best approach to solve the problem?
 
Thanks,
Halil
 


-------------
People in every direction...



Replies:
Posted By: WebWiz-Bruce
Date Posted: 29 November 2005 at 1:13pm
This is common problem when moving from one server to another server with a different locale settings.

This is becuase the old server would use a dot (.) in double numbers and your new server a comma (,)

To fix this problem 7.6 has been changed so that the date is tored in a different format.

Update to version 7.6 will sortout your problem.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net