Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Complicated CDATE Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Complicated CDATE Problem

 Post Reply Post Reply
Author
hgurol View Drop Down
Newbie
Newbie
Avatar

Joined: 29 January 2004
Location: Turkey
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote hgurol Quote  Post ReplyReply Direct Link To This Post Topic: Complicated CDATE Problem
    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
 
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.