Questions tagged [utc]

UTC stands for Coordinated Universal Time - it is the time standard by which the world regulates clocks and time.

utc
Filter by
Sorted by
Tagged with
0 votes
1 answer
5k views

Convert yyyy-mm-dd to JS timestamp

Theres lots of questions about how to convert a timestamp to yyyy-mm-dd but I am trying to do it the other way around. I have an array of dates in the format 2013-02-25 but I want them to be js ...
James's user avatar
  • 111
6 votes
2 answers
28k views

json and Utc datetime

I'm storing Utc datetime on the server and requesting data via json to display on client. The problem is that the server returns the time by its timezone which is different to a client. How could I ...
agri's user avatar
  • 283
1 vote
2 answers
2k views

How to get the Time in UTC from Time & Timezone in PHP?

I am working on an app which needs a certain functionality related to time & timezones. Here is a pseudo code below which may provide brief about my doubt $start_time = "10:00 AM"; // starting ...
Chirag Swadia's user avatar
0 votes
1 answer
4k views

Converting DateTime to local not working

In MVC4 C# application I tried convert server time to local time. It works in local, but it does not working when site deploying. For testing I checked some code results in deployed site. They are: ...
Jeyhun Rahimov's user avatar
2 votes
2 answers
1k views

How to get local time in another time zone in Silverlight

In a Silverlight app, if I know the Timezone Id, how can I get either the current UTC offset for that timezone or the current time? If I am on the east coast and I want to know the current UTC offset ...
Jerry's user avatar
  • 6,477
20 votes
6 answers
42k views

How to convert Local time to UTC time in Delphi? and how to convert it back from UTC to local time?

I'm using Delphi and I'm trying to store records using UTC datetime in my database and then restore it back when a client reads it in his local datetime ? any idea how to do this forth back conversion ...
Dreamer64's user avatar
  • 1,035
0 votes
1 answer
1k views

Why is the local timestamp equal to the UTC timestamp? [duplicate]

If date() formats a local time/date, and gmdate() formats a GMT/UTC date/time, why is this true? date_default_timezone_set('America/Los_Angeles'); var_dump(date('U') === gmdate('U')); // true On the ...
SoTes's user avatar
  • 3
2 votes
2 answers
622 views

How to calculate time zone offset for a large application?

As working on a large application I am trying to make the datetime stamps reconcile with the current user time. so If activity id done at 3:00PM then the every user see it at 3:00PM So Here is ...
Jaylen's user avatar
  • 39.7k
8 votes
4 answers
20k views

There is a difference between local and server time

In MVC4 C# application I used DateTime.Now when object created in my application. After deploying, there was +8 hours difference between local computer and hosting. Then I changed it to DateTime....
Jeyhun Rahimov's user avatar
1 vote
2 answers
8k views

Covert UTC time format to local time [duplicate]

I have a UTC time in this format 2013-03-04T14:37:15 How can I convert this into local time and then to one minute ago format. I tried this first to convert the time to local format: private String ...
sukarno's user avatar
  • 597
1 vote
3 answers
3k views

javascript - UTC date object manipulation

The UTC thing is really making me crazy... I am trying to have date and time on site in UTC so it has no affect of any timezone. What I do, I create a date object var d = new Date(); //convert it ...
makki's user avatar
  • 2,107
2 votes
3 answers
2k views

Quartz.net on Azure The time zone ID 'Coordinated Universal Time' was not found

I'm using Quartz.Net on Azure worker role (hosted in west europe zone) and for some reason my schedulder is not working throwing this error: An error occurred while scanning for the next trigger to ...
user886346's user avatar
0 votes
2 answers
4k views

Converting a DateTime to Utc given a timezone

I don't want to keep having to change the config everytime there is a daylight savings change. This is what I am currently doing which doesn't work as it uses "Standard" time. TimeZoneInfo timeZone = ...
Cheetah's user avatar
  • 14.1k
0 votes
3 answers
2k views

Slow query time in postgresql when UTC milliseconds is stored as bigint

We are migrating from a time series database (ECHO historian) to a open source database basically due to price factor. Our choice was PostgreSQL as there are no open source time series database. What ...
AnswerSeeker's user avatar
0 votes
1 answer
675 views

Google Spreadsheet - Time zones find text

I have a Google Form where I ask people to tick their time zone and to tick their time slot. An anser may be (each answer is given in one cell): Time Zone = UTC+8 (Perth, Beijing, Manial, Borneo, ...
Ampi Severe's user avatar
4 votes
1 answer
5k views

Delphi - Get TTimeZone for non-local timezone and convert between timezones [duplicate]

My subject is probably terribly worded, but here's what I have. I have a web service that reports timestamps in its local time and the timestamps reflect daylight time if the server is in an affected ...
Michael S.'s user avatar
  • 1,781
0 votes
1 answer
651 views

How to get previous month values in UTC in Javascript

I need to use jquery flot plugin to plot time based data on a graph in a web page. It needs time parameters to be passed in UTC format. Getting current date is quite easy just defining a Date Object ...
Harsh Reddy's user avatar
5 votes
2 answers
8k views

JDBC/MySQL: Save timestamp always using UTC

I would like to save a timestamp to the database without being converted to the local timezone by the jdbc driver. Currently only MySQL and PostgreSQL are important for me but i would appreciate if ...
Werzi2001's user avatar
  • 2,085
2 votes
1 answer
351 views

ASP.NET DateTime object "changes" when passed to Javascript

I have my ASP.NET webservice whicn runs on my local computer in my test environment. My local computers UTC time is +1 (denmark). Now I have these methods available to my javascript client: [...
Farsen's user avatar
  • 1,577
4 votes
1 answer
4k views

Symfony2 Rendering datetime with timezone in forms

In my system, database timestamps are recorded as UTC values. Every user has a timezone recorded in their profile. When logging in, the timezone value is transferred from their profile to their ...
ritter's user avatar
  • 587
8 votes
2 answers
14k views

moment.js - UTC does not work as i expect it

testing in the node console: var moment = require('moment'); // create a new Date-Object var now = new Date(2013, 02, 28, 11, 11, 11); // create the native timestamp var native = Date.UTC(now....
hereandnow78's user avatar
  • 14.3k
0 votes
1 answer
1k views

Getting timezone on android with respect to GMT

I want to get the timezone on an android device with respect to UTC. For example, if I'm in PST timezone, then I want it in this format: "-0800". Is it possible?
bianca's user avatar
  • 7,114
3 votes
1 answer
3k views

Ajax post javascript date as UTC OR server Time

I am trying to post a created date to an ASP.Net MVC controller without the date being modified by the serializer. I am looking for some kind of way to do this on the client. The date is being ...
billy jean's user avatar
  • 1,419
0 votes
1 answer
681 views

Incorrect data format for value - UTCDate

using Fix 4.2, I am receiving messages like this: 8=FIX.4.29=15135=W49=aSERVER56=myNAME34=84823052=20130226-00:43:05.53755=USD/JPY268=1269=2270=92.699271=0272=20130226273=19:43:04274=210=251 but my ...
mcmillab's user avatar
  • 2,784
0 votes
3 answers
4k views

How to convert UNIX timestamp into EST time in Matlab?

How can I convert UNIX time stamp to system time and date? In my case EST time.
ChanChow's user avatar
  • 1,356
0 votes
1 answer
63 views

why is there a difference between UTC time stamps in 2013 and 2008

I am taking the difference of two UTC timestamps for two data sets. 2008 dataset 2013 dataset when I take the difference in 2nd dataset, it gives me the difference in millisecs, but when I do the ...
ChanChow's user avatar
  • 1,356
65 votes
4 answers
224k views

How to Convert UTC Date To Local time Zone in MySql Select Query

I am using this Where Condition in One Of my query with MySql Database.My Problem is that i have one displaytime column in my table but that table column shows the data in UTC Time.and i want to ...
BhavikKama's user avatar
  • 8,674
1 vote
1 answer
1k views

3.in.pool.ntp.org sometimes fails to return date in android device

I am fetching UTC date from ntp servers from a long time now. But I have noticed that I am getting empty string sometimes(once in 100 times) as I run my code. My code is DateFormat outputFormat = ...
Name is Nilay's user avatar
3 votes
2 answers
3k views

How to convert UTC timestamp in seconds to human readable local time in a shell script?

Given UTC timestamp in seconds 1361322102.430 How do I convert it to human readable local time in a shell script?
smile-on's user avatar
  • 2,153
7 votes
3 answers
18k views

jquery datepicker getTime not UTC

I have the following code which works fine until the datepicker reaches BST. var i; function showEventDates(date) { for (i = 0; i < startDates.length; i++) { if (date.getTime() == startDates[...
Tom's user avatar
  • 12.9k
7 votes
4 answers
18k views

Convert Time to UTC vbScript

I have the following function which does fine at converting current time to UTC time. Function toUtc(byVal dDate) Dim oShell : Set oShell = CreateObject("WScript.Shell") toUtc = dateadd("n", ...
GWR's user avatar
  • 1,938
38 votes
3 answers
20k views

NSTimeZone: Any difference between "UTC" and "GMT"?

Are these five statements interchangeable, or is anyone aware of cases where their use would yield different results? From what I gather they are equivalent but I haven't found anything conclusive, ...
Clafou's user avatar
  • 15.4k
0 votes
1 answer
1k views

Convert Timestamps represent seconds since midnight Coordinated Universal Time (UTC) of January 1, 1970. to Date?

I am using MovieLens data set, and trying to convert UTC Timestamps represented in seconds since midnight Coordinated Universal Time (UTC) of January 1, 1970 to Java date. I could not find any useful ...
Basmah's user avatar
  • 859
12 votes
5 answers
7k views

Chrome interprets ISO time without Z as UTC; C# issue

Run this jsfiddle: http://jsfiddle.net/E9gq9/7/ on Chrome, FF, and IE and you get: Chrome: Chrome http://images.devs-on.net/Image/vBTz86J0f4o8zlL3-Region.png Firefox: Firefox http://images.devs-on....
tig's user avatar
  • 3,484
52 votes
10 answers
116k views

How to convert UTC timestamp to device local time in android

I need to convert the UTC time stamp that I get from the server to local device time. Currently, I get 5 hrs difference in my time. For example, when I post to the server, the post time says 5 hours ...
cavallo's user avatar
  • 4,414
3 votes
2 answers
2k views

Python Date/Time Formatting

I am working with an API that is returning a JSON string that contains the following date/time in it: 2013-03-14T14:15:23-07:00 I get the date and the time, down to the second. But the last 5 ...
Matt Keller's user avatar
1 vote
2 answers
206 views

Trying to get UTC datetime force closes application

I am designing a service class to update data into the server periodically. Everything is working fine, but I have to send the current UTC date time in this format "MM/dd/yyyy HH:mm:ss" to the server. ...
kittu88's user avatar
  • 2,451
0 votes
2 answers
308 views

How to run my thread even during device Switch-Off in android

I have developed an application that runs every day once. In that I want to update the date by one in a File (so it needs to be done every day). I make it possible with help of Handler like this: ...
Name is Nilay's user avatar
5 votes
2 answers
2k views

Get UTC date from Web in android application

I want a UTC date for my android application which is device (and User) independent. I have heard some thing like getting date from NTP server but cannot find any help from google or SO. So can anyone ...
Name is Nilay's user avatar
1 vote
3 answers
516 views

How do I display PHP UTC timestamps in a readable format for Facebook events on my website?

I have created this page http://www.islandstreet.co.uk/events/ which uses the Facebook API to retrieve my event details from Facebook and display them on my website. The problem I need a solution to ...
Daniel Michael Ashton's user avatar
2 votes
2 answers
2k views

How to figure out if the Date string contains time offset added already in Javascript?

Consider this date string: "2012-08-20T15:00:00-07:00" It has time offset added as "-07:00" How can I find out it has this offset added? I know I can do it with regular expressions. But is there ...
Ashima's user avatar
  • 4,794
23 votes
2 answers
47k views

Does UTC date string require the format specifier "Z" even if that string includes time offset?

For instance, const d = new Date("2012-08-20T15:00:00-07:00"); d here is a UTC time with time offset = 07:00. Does it still require Z like this 2012-08-20T15:00:00-07:00Z? Is this correct? ...
Ashima's user avatar
  • 4,794
0 votes
1 answer
165 views

Finding UTC date corresponding to NewYork midnight

I have a user who has configured his timezone as America/New_York . I have to schedule an event for him which should start in his midnight and end after 24 hours( the next midnight). But I want to ...
Subin Sebastian's user avatar
1 vote
2 answers
12k views

converting a utc format date string to date object in Extjs

I have a date string in the format "2013-01-31T10:10:05.000Z". I want to convert this string to a Date object in extjs. I have tried to use Ext.Date.parse("2013-01-31T10:10:05.000Z","Y-m-dTH:i:s.uZ")....
ramya sri's user avatar
  • 115
19 votes
5 answers
38k views

Using Joda-Time to get UTC offset for a given date and timezone

I have dates in the format 20Jan2013, 08Aug2012 etc, with their own specific timezones. So for example, 20Jan2013 might have a timezone ID of Australia/Melbourne, and 08Aug2012 might have an ID of ...
PrincessBelle's user avatar
1 vote
2 answers
11k views

Python storing and comparing timestamps

From what I've researched, it appears storing my timestamps as UTC (not native, full, eg: 2013-01-29 02:11:11.151996+00:00) is the norm. When retrieving the times, I want to check if a window of ...
mr-sk's user avatar
  • 13.2k
0 votes
1 answer
43 views

Rails applications and TimeZone

Does Rail handle TimeZone by itself or we should code for it? For example a doctor orders medicine for a patient in NewYork like 6 hours a day... then flies to California and open the chart of that ...
user39995's user avatar
2 votes
1 answer
2k views

Facebook Graph API event post results in wrong time

I'm posting an event to a Facebook page via the graph api, but when I enter the demanded ISO 8601 timestamps for start and end time I get an unexpected time offset when viewing the event on Facebook. ...
ThomF's user avatar
  • 21
0 votes
0 answers
368 views

Calculate the exact UTC offset with DST in mind?

On Android, it seems there is no API to easily get the local time. Digging through the net, I found some code to calculate the offset from the UTC time using the TimeZone class: final long timestamp =...
l33t's user avatar
  • 19.4k
0 votes
1 answer
793 views

squeryl date to long conversion

I want to store java.util.Date (or Timestamp) as an int (or Long) in my db using Squeryl. I'd like to control how the date is transformed to the number and vice versa. How can I achieve this? I'm ...
samz's user avatar
  • 1,662

1
36 37
38
39 40
48