473,414 Members | 1,948 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Dataset / Pacific Timezone Question

I have a Web Service on a Web Server on the East Coast
which returns a serialized DataSet from my SqlServer at
the same location.

When the DataSet is read by my client in a
different time zone, the datetime columns have
been "adjusted" to account for the time zone difference
between server and client.

For example, if the value in a datetime column on my
database is '1/1/02 12:00 AM', when I retrieve it on a
client machine on Pacific Time, the value is '1/1/02 12:00
AM' in the DataSet on my Web Server, but when the
client "deserializes" the XML back into a DataSet on my
client, the value becomes '12/31/01 9:00 PM'.

Is there a way to disable this behavior so I get the same
dataset at my client that I sent from my Web Service?

Thanks very much
Nov 16 '05 #1
1 1473
Hi Amos:

The only way to prevent this currently is to send the date/time as a
string.

--
Scott
http://www.OdeToCode.com

On Fri, 17 Sep 2004 13:59:42 -0400, "Amos Soma"
<amos_j_soma@y_a_hoo.com> wrote:
I have a Web Service on a Web Server on the East Coast
which returns a serialized DataSet from my SqlServer at
the same location.

When the DataSet is read by my client in a
different time zone, the datetime columns have
been "adjusted" to account for the time zone difference
between server and client.

For example, if the value in a datetime column on my
database is '1/1/02 12:00 AM', when I retrieve it on a
client machine on Pacific Time, the value is '1/1/02 12:00
AM' in the DataSet on my Web Server, but when the
client "deserializes" the XML back into a DataSet on my
client, the value becomes '12/31/01 9:00 PM'.

Is there a way to disable this behavior so I get the same
dataset at my client that I sent from my Web Service?

Thanks very much


Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Alina | last post by:
Hello I'm working with a disconnected DataSet and I wish to make thread-safe the "add new rows" method. I try like this, but does not work: public class MyXmlDataDoc { ........
1
by: LJL | last post by:
Greetings: I have a question regarding the system time and Netscape 7. I am running Win98SE. When Netscape 7 first loads it seems to store the currently set system time zone information. If...
1
by: gro.asumsa | last post by:
I have two DataTables in a DataSet. I would like to create a third DataTable in the same DataSet that is a Join of the two original DataTables. The two tables are extracted from two different...
1
by: Jeff Wilson | last post by:
Am relatively new to .NET and am trying to use it to create a usage billing system that can process a million or two records each day. Am currently using a simple system written in C that uses...
0
by: Vern | last post by:
When the dataset gets cached on the local computer, does this cache get written to disk or does it stay in the ram? If it stays in the ram, is there a maximum size When the computer gets shut off,...
0
by: dubian | last post by:
I am bringing together 4 databases from 4 servers to a single instance of SQL Server. The clients are spread across the country and all have access to the server on the wan. I have a question...
1
by: Yosh | last post by:
Let's say I have a DataRow that I got from DataSet "A". Can I modify the data in the DataRow and add it to a new DataSet "B" and have it update the same datasource? I hope this makes sense. ...
0
by: Boonaap | last post by:
Hi, I have a typed DataSet (created with VS), two dataAdapters and a component. In this DS ther are two tables and a relation between them (fi tblUsers and tblUserDetails) On my form I have a...
9
by: Steven C. | last post by:
Hello: I'm getting an error, "primary key not defined" when trying to use the FIND method on the DataTable Rows collection. I have a typed dataset called 'MortgagesDS' that I created with the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.