Time zone mess using WCF
I have a SaaS system with multiple clients throughout the world. Each client is only in one time zone, though. Communication between client and my central server is done using WCF.
Now there's a scheduling aspect to the system, and times have to be stored in terms of the local time. But I am finding that when I send a class tagged with the
DataContract attribute, having a
DataMember property of type
DateTime through the WCF interface, the system is getting too clever by a half, and it's translating the time to server time. OTOH, if I pass a DateTime value directly through a WCF interface as a parameter, the time comes through verbatim, as client time.
This is causing me a lot of headaches. Is there something I can configure somewhere so that the WCF service doesn't translate any times to local (server) time?
EDIT: Well, I don't know what I did, but I was working on some related stuff, and the problem appears simply to have disappeared! So I'd love to try out your answers, but I actually can't reproduce my own problem now... If I had time for the academic exercise, I'd look deeper, but right now, if it ain't broke...
I want to change default time zone so it's our local European/Prague - because I work with week/days boundaries. But calling (I call it in filter bfore processing each request) DateTimeZone.setDefault
am trying to change the time of my sql server: serve_time_zone=GMT Daylight Time time_zone=SYSTEM i have tried: SET TIME_ZONE='+01:00'; to get the correct time_zone, but when i restart server to
When I use return the time that the record created, it show this : 2010-01-20 15:04:40 UTC but I want the time in my specify time zone, for example, China. Is there any convenient method in RoR?
In a Zend Framework project I am using Zend_Date to save user entry time. But the use case is ome thing that when I am inserting data from a time zone,it should be converted to the user who is from an
This question already has an answer here: How to get TimeZone from android mobile? 5 answers How can I get the current time zone in my Android application? I tried to use this Calendar cal = C
I am having trouble changing a column called end_date in a table called key_request from time with time zone to timestamp in my Postgres database . I have tried using the following code: alter table k
Is there a way to find the time zone a user is in when all I have is their IP address? I'm looking for the time offset I need to apply to the server time in order to find the time for the user's locat
I'm trying to parse a date/time string in a custom format using Boost's date time library. The format I'm trying to use is rather unusual because it includes the Posix time zone description string. Th
We have NSTimeZone class that tells more about the time zone. But I want to get only the offset of the time. For example: +05.30 is offset for Inida In other words offset of time with reference to UTC
Hi i have created the asp.net web application without considering the time zone. I am using directly the DateTime.Now function. Actually that returns datetime in server configured time zone format. No
I want to create a php script to conduct an online contest all over the world at single time . My first question.. can i really do it at one time span , if yes then HOW? for eg. let's say i host a con
The following segment of code formats and converts a date to the UTC zone using the Joda-Time API. DateTimeFormatter dateTimeFormatter=DateTimeFormat.forPattern(dd-MMM-yyyy hh:mm:ss aa); DateTime da
I am trying to convert times to different time zones, but not the way you're thinking. I need to convert a DateTime that is 9am EST to 9am CST on the UTC for example. The timezones are variable so jus
I am using WCF service which returns current time of the server. My Client is in different time zone. When I call this service, It is automatically converting the time returned by the server to local
I have a stringdate 16-MAY-2010 23:04:44 which i need to convert to gmt time zone that is the out put required is 17-May-2010 12:03:03. I used date formatters to convert but the result i am getting is
Based on Oracle document, it stores different parts of timestamp with time zone internally in terms of numbers. I read this article http://www.orafaq.com/wiki/Timestamp which explains the algorithm of
I have something like this I/global ( 3622): Loaded time zone names for en in 355ms. I/global ( 3622): Loaded time zone names for en in 307ms. I/global ( 3622): Loaded time zone names for en in 309ms.
We have a ASP.Net 2.0 web application up and running with the server in the Midwest (Eastern Standard Time). At this moment all of our customers are in the same time zone as the server. We are bringin
i am using php with mssql, on windows azure cloud storage , when i insert datetime with code then it insert '2013-05-30 11:31:47.000' (which is correct time with indian time zone) but when i use get
I'm wondering if there is some clever way of getting the clients current time and time zone in order to use it in the server.R part of a Shiny application. If not, what could be the easiest way of doi
I have a org.joda.time.DateTime object and I need to retrieve the military time zone abbreviation (e.g. T for UTC-07:00, U for UTC-08:00, Z for UTC±00:00). See http://en.wikipedia.org/wiki/List_of_mil
I can get a list of time zones with [NSTimeZone knownTimeZoneNames], but that only gives the time zone IDs which include one or two cities in each time zone. The Date & Time settings has a great l
The task: Time zone chooser widget that allows site visitors to choose their time zone should be generated and populated with reasonable data. It should offer choices like this: GMT-11 (HH:MM actual t
I try to fetch date from server date('l, F j, Y g:i A',strtotime($data_event->start_date)); It shows time zone EDT, how do i change it into Makkah Time zone. Please anyone out there for any sugge
Hi I might be missing something but how does event_calendar the rails gem determines time zone? Locally it respects my timezone but not on server. I am running it on heroku so it used UTC to determin
What is the difference between config.time_zone and config.local_zone? Is there a situation when should both be set?
What is the simplest way to get the machine's time zone as a positive or negative UTC offset, preferably using some time of shell command?
I'm a PL/SQL newbie who needs to convert milleseconds since unix epoch to a date/time. I can convert to GMT date/time but don't know how to adjust for the time zone. I'm close but not quite there. My
When I developing an app I have tested that jsonSerializer works fine, but then I copied it to production server it gives +2 hours to any time that goes thru jsonSerializer. So, how can I adjust time
Possible Duplicate: Guessing User's TimeZone in PHP How can i get my system current time zone in php thanks in advance I tried this code echo date_default_timezone_get(); echo date('H:i:s'); date_d
My server is in the US and I'm in the UK. I store timestamp values on a mysql server using the default CURRENT_TIMESTAMP. So when entries are added to my table they're stamped with the current time. T
Is there a way of getting the Canonical Time Zone name from a Linux shell script? for example, if my configured time zone is PDT, then I would like to get America/Los_Angeles. I know I could get fro
If I change the time zone of my site. Will it also update the time zone of previously created content etc or should I do it through scripts? Thanks
Here is my current situation: I have a user class that has an attribute time zone. When the user creates a Lecture with start_time (3pm) and end_time (5pm), I want to ensure that in the database the s
I've been bashing my head up against timezones in Rails for some time. Here is the issue: I want users to be able to input into a time_select field a local time (e.g. 9:30AM). Based on the user's sele
I see Magento use UTC time zone by default. Its a problem for my cron tasks. But for all stores i have set my current time zone but UTC still using. How to set time zone without changing Mage.php or a
I am struggling to apply session basis time zone in Codeigniter(2.0). Scenario: Once user logged in the system I use the lat/lon to detect the time zone ID and set it to a session variable and then ca
In my application, I need to create a Gregorian Calender object using the date, time and time zone objects. I happen to have all data in string/int format viz: DD, MM, YY, HH, SS, XXX . E.g. 20 , 03
How can you detect the time zone in Silverlight? This is an out of browser application Would you use p/Invoke? Does Silverlight support this by default in the time class?
I want to check if a given DateTime is before or after current DateTime. I was converting input time and current time to a common time zone (say UTC) and comparing DateTime. But I stumbled upon Joda A
When building a SQL time stamp by specifying only the milliseconds in the constructor, which time zone will be used? And how to choose whether UTC or the local time zone will be written into an Oracle
I'm currently working with Moment.js which is used to convert one time zone to another. I read the document and when I tried it doesn't give any suitable result. Right now, I'm doing the following fo
I'm struggling here a bit with the time zone in MySQL. What I need to do is to compare two time values in the database - both with different time zone to see if the specific event has already happened
I have a little problem parsing a date in python This is the date I have to parse: Sun Sep 15, 2013 12:10pm EDT And that is the code I'm using to parse it: datetime.strptime( date, %a %b %d, %Y %I:%
I am using Google Time Zone API to retrieve time zone, my code is $lat = round($location['lat'], 2); $lng = round($location['lng'], 2); $url = https://maps.googleapis.com/maps/api/timezone/jsonlocat
I have set the time zone in /config/application.rb, and I expect all times generated in my app to be in this time zone by default, yet when I create a new DateTime object (using .new), it creates it i
Is there a way that I can use a Time Zone abbreviation (PST, EDT, GMT, etc) and turn it into the current time with C# on WP7? I would assume I could use something like TimeZoneInfo to find the offset,
Rails 3.2.17, Ruby 2.0.0, happens on Heroku, and on my OSX 10.9.2. After doing math it sets the time zone to the local time zone. date = Time.new Time.zone.now.year, 7, 1, 0, 0, 0, '+05:00' #=> 201
I have a small Django project that imports data dumps from MongoDB into MySQL. Inside these Mongo dumps are dates stored in epoch time. I would expect epoch time to be the same regardless of time zone
Is it possible to create a custom time zone in R for handling datetime objects? More specifically I am interested in dealing with POSIXct objects, and would like to create a time zone than corresponds