Hello
I am hoping someone can help. We have a system setup here in Boca Raton, FL (USA) where run this code.

<?php
$server='GRATCQ02.ths.siemens.gr,1433';
$username="frdb_id";
$password="testing";
$sqlconnect=mssql_connect($server,$username,$password) or die ("Could not connect to database: ".mssql_get_last_message());
;
$sqldb=mssql_select_db("northwind",$sqlconnect);
$sqlquery="SELECT mydate1 from dd";
$results=mssql_query($sqlquery);
while ($row=mssql_fetch_array($results))
{
echo $row['mydate1']."<br>\n";
}
mssql_close($sqlconnect);
?>

this returns [Jan 1 1900 12:00AM]
now this same code is on a server in Athens, Greece and we get a different result
we get - [1 Jan 1900 0:00]

I understand that changing the code to a unicode format would probably be the best solution but we don't have that ability right now - we don't own code :mad: and owner says it's in too many places to change :eek: and we are being pressed by management to get this corrected quickly.

We thought possible the regional date/time setting on the Windows 2003 server box would be the issue but that doesn't seem to change anything.

Wondering if anyone else had a similar issue? or any suggestions 😃

thanks
Kellie Verrelli

    5 days later

    I've moved this thread to the Database forum since it could possibly be a database issue instead.

      wasn't a db issue - it was some setting in the Regional settings on the windows server - I can honestly say I don't know what I did to make it work but after changing everything on that control panel function to match the USA server (and 5 reboots) it started to work

      Kellie

        Odd.

        Well, don't forget to mark this thread resolved (if it is).

          23 days later

          Sorry, i don't know this. Please search in internet.

            Write a Reply...