Questions tagged [gmt]

Greenwich Mean Time (GMT) is a term originally referring to mean solar time at the Royal Observatory in Greenwich, London.

Greenwich Mean Time (GMT) originally referred to mean solar time at the Royal Observatory in Greenwich, London, which later became adopted as a global time standard. It is arguably the same as Coordinated Universal Time (UTC).

Related tag:

Useful Links:

UK: GMT

USA: GMT-5 --- GMT -10

448 questions
1
vote
1 answer

Convert a GMT datetime to local timezone datetime

In Java 8 I need a way to get the local datetime (GMT+1) from a GMT datetime in ISO 8601 format. A simple example: Client sends me (Server) this datetime "2020-01-11T23:00:00.000Z" Client sends me this when the user choose the 12 Jan 2020 from the…
HK15
  • 737
  • 1
  • 14
  • 32
1
vote
1 answer

Historical time to GMT\UTC with DST

Similar to: Convert historical time to GMT This time my scenario is: I need to convert some string times in the format "2011061411322100" into GMT. The problem is that the times are coming from another PC and is a historical time. So I am not…
Paligulus
  • 493
  • 1
  • 4
  • 14
1
vote
1 answer

How to keep my date value correct for submitting to API?

I'm on an angular app with .net core 3.1 backend. I use a material datepicker. When I pick up a date I can see in the console it looks like Wed Feb 10 2021 00:00:00 GMT+0100 However, when it arrives in my web api controller, the value has changed.…
Julien
  • 101
  • 2
  • 12
1
vote
1 answer

GMT to local time conversion ERROR with swift UIKIT

Does anyone have an answer to why I am getting -8 hours instead of -7 (my timezone) hours difference upon converting time from GMT to local i using the formula below: print("TIMEZONE IN HOURS: \(timeZone/3600)") let interval =…
AA Kanj
  • 13
  • 4
1
vote
1 answer

C# Convert DateTime to GMT or BST from UTC

I'm storing a date-time in SQL which is retrieved from an Azure server which is in UTC. When I come to retrieve this date-time from SQL, the date-time kind is unspecified ... In the UK, we are currently in BST, how can I convert the date-time I…
japes Sophey
  • 487
  • 3
  • 8
  • 26
1
vote
2 answers

How to setup timezone in firestore usage tab?

Not in Analysis dashboard. But when you go database then usage tab. I'm not in GMT-7
Slow T
  • 41
  • 3
1
vote
1 answer

How to use a specific GMT for a function which will be recognised by other time zones

I imagine there's a simple way to do this, I just haven't figured it out yet. I want to display a button only between 9am to 12pm AEST (GMT+10). So for a user in AWST (GMT+8), they will not be able to see the button when it is 11am for them. I have…
daj mi spokój
  • 248
  • 1
  • 2
  • 8
1
vote
3 answers

JS Get Two Time Different problem with GMT in hours

I am facing a problem to Get Two Time Different Globally. I need diff time format days: Hours: Minutes: Seconds. Everything is ok but problem in hour. For this example hour should be 0 hour but it return 6 hours.. function getTimeDiff(join,…
Shapon Pal
  • 1,098
  • 3
  • 16
  • 27
1
vote
1 answer

How can Miller convert a local date and time to UTC?

How can Miller 5.6.2 convert a local date and time to UTC using an expression simpler than the following? $ printf "time1\n2019-06-13 05:54 PM\n" | mlr --csv put ' $time1=sec2gmt( localtime2sec( strftime( strptime($time1,…
Derek Mahar
  • 27,608
  • 43
  • 124
  • 174
1
vote
1 answer

QT unixtimestamp conversion not print GMT time

I have unixtimestamp 1579106713 which represent 1/15/2020 16:45:13 and I need to convert this time in Qt, I have used the code but getting different value int unixTimeTmp = 1579106713; // 1/15/2020 16:45:13 QDateTime timestampq; …
CodeDezk
  • 1,230
  • 1
  • 12
  • 40
1
vote
2 answers

Debug simple java code related to Calendar Date GMT

import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.TimeZone; public class Test { public static void main(String[] args) throws ParseException { …
Mzq
  • 1,796
  • 4
  • 30
  • 65
1
vote
1 answer

Seconds to gmt and from gmt back to seconds in python using 'time' library

For the following code, I expect the seconds_input and seconds_output, to be the same. But I get an hour difference: import time seconds_input = 1571875186 date_struct1 = time.gmtime(seconds_input) tm_str = time.strftime("%Y-%m-%d %H:%M:%S",…
Gооd_Mаn
  • 343
  • 1
  • 16
1
vote
0 answers

Javascript: Date sent to http.put function isn't what gets sent to API

The problem I'm having is that I have a n object that includes a Date property. When the object is created or edited, that Date property is sent to the API using an HTTP put or post method, but the value of the date is changed when it's sent out. …
Eddie
  • 1,228
  • 3
  • 17
  • 31
1
vote
1 answer

having troubles comparing jwt.iat (issued at) property with current datetime - ("Seconds Since the Epoch" NumericDate)

I am getting a json web token from a web service, which when decoded returns something like this: { "exp": 1572468916, "iat": 1572468316, "iss": "https://ccc/auth/realms/yyy", "aud": "xxx-api", [...] According to Section 2 terminalogy the…
opensas
  • 60,462
  • 79
  • 252
  • 386
1
vote
0 answers

JsonResult codes the date and time as UTC... how to avoid this?

I have an MVC controller that is called via Ajax. That controller makes a query to a database returning a date (with 00:00:00 as the time value) In a case, record stored in the SQL Server database has the value of "2019-05-01 00:00:00.000". I am…
jstuardo
  • 3,901
  • 14
  • 61
  • 136