Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How do I ignore time zone differences?

Reply
Thread Tools

How do I ignore time zone differences?

 
 
=?Utf-8?B?SGFycnkgS2Vjaw==?=
Guest
Posts: n/a
 
      02-27-2007
I call a web service that returns a dataset with date infomation. I then
store that information in a local database. The web server and the machine I
am calling it from are on different time zones. All of the times that I save
are getting changed. I can see a -7 at the end of the date string in the xml
coming from the web service. I want to get the date as it is stored, I do
not want it converted, which is what .Net seems to be doing. What is the
best way for me to get the datetime from the dataset while ignoring time zone
differences?
 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      02-27-2007
use gmt time.

-- bruce (sqlwork.com)

Harry Keck wrote:
> I call a web service that returns a dataset with date infomation. I then
> store that information in a local database. The web server and the machine I
> am calling it from are on different time zones. All of the times that I save
> are getting changed. I can see a -7 at the end of the date string in the xml
> coming from the web service. I want to get the date as it is stored, I do
> not want it converted, which is what .Net seems to be doing. What is the
> best way for me to get the datetime from the dataset while ignoring time zone
> differences?

 
Reply With Quote
 
 
 
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      02-28-2007
> use gmt time.
>

As they called it in past and now UTC or even ZULU time

http://en.wikipedia.org/wiki/Coordinated_Universal_Time


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
prevent a postback when moving web parts from zone to zone. =?Utf-8?B?VmluY2UgVmFyYWxsbw==?= ASP .Net 0 02-08-2006 12:20 AM
Ignore + TEST + Ignore SpooderStank Computer Support 2 04-08-2004 11:26 AM
Searching for Exact Phrase - should I ignore the ignore words? Rob Meade ASP General 6 03-01-2004 11:28 AM
Zone Alarm or Zone Alarm Pro? Jones Computer Information 5 02-20-2004 07:29 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57