Questions tagged [timezone-offset]

A time zone offset describes the difference between a "wall time" and UTC. General questions about time zones will get better visibility when tagged with 'timezone'.

A time zone offset describes the difference between a "wall time" and UTC.

Time zones can change their offsets for many reasons, including daylight saving time. Therefore, an offset is not the same thing as a time zone, and It is only valid for the specific instant it is associated with.

General questions about time zones will get better visibility when tagged with .

See also the timezone tag wiki.

1036 questions
-2
votes
1 answer

Get utc offset value from a local timestamp string in nodejs/javascript

My local timestamp value is a string in the below format: '2020-05-19T15:45:07.2306062+05:30' How can i get a UTC offset value from this format of date string using nodejs/javascript? Please help. Thanks in advance
-2
votes
2 answers

How to convert time in utc second and timezone offset in second to date using java-8?

I have a date in utc second and its time zone offset in sec. I would like to convert it to date string in format yyyy-mm-dd using java8 ZoneOffset class. Below is the time in seconds and offset long time = 1574962442, long offset = 3600 Now i want…
Sean Nguyen
  • 12,528
  • 22
  • 74
  • 113
-2
votes
1 answer

Convert UTC time in long value to GMT time in Android

I have UTC time in long value = 1555415100000L. Now I want to convert to local time in different time zone. example: 1555415100000L = 2019/04/16 18:45 (GMT+7) 1555415100000L = 2019/04/16 14:45 (GMT+3) ... Do you have any suggestion to solve this…
Zappy.Mans
  • 551
  • 1
  • 7
  • 19
-2
votes
2 answers

DateTime("2019-02-16T10:00:00+08:00") conversion to local date time with offset value

I get the datetime content in the below string format with offset time value from the source system. 2019-02-16T10:00:00+08:00 Where i want to convert that into local date time using the offset value.I tried the below, but not getting the expected…
furisuri
  • 1
  • 1
-2
votes
1 answer

convert milliseconds to java date with offset hours (Z05:00)

How to convert string value in milliseconds to the string of date format as "2006-01-02T15:04:05Z07:00"? (inlcuding offset with Z)
-2
votes
2 answers

How to get time in format HH:mm:ss from timestamp 20180805231400 -0300

Below is my code but it throws an exception saying that unable to parse date format. try{ DateFormat outputFormat = new SimpleDateFormat("yyyyMMddHHmmss zzzz", Locale.getDefault()); DateFormat inputFormat = new…
-2
votes
1 answer

How can I sum up two ZoneOffset's?

I have two objects of ZoneOffset's parsed from Strings. How can I sum them up and apply to ZonedDateTime? For example: original ZonedDateTime is 2017-12-27T18:30:00, first offset is +03, second offset is +05 How can I get the output of…
San
  • 115
  • 3
  • 16
-2
votes
1 answer

Timezone issue while retrieving records from database

I have developed a website for my client that will run on multiple countries & timezone. I storing all the records in UTC & while showing the data to the user , i again convert that to the user timezone & its working fine. But facing problem while…
pkk
  • 283
  • 4
  • 19
-2
votes
1 answer

Timezone UTC to Europe/London +- 0 hours?

I am a little confused about timezone calculations... Of course London is 1 hour ahead of UTC, but why does this list say, that there is no difference between London and UTC??? Thanks for your help!
Robin Alexander
  • 984
  • 2
  • 13
  • 29
-2
votes
1 answer

Java DateFormat for UTC

I have a DateFormat like DateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS"); I have a date like this: 2017-02-23T11:00:04.072625 This "date" is a UTC date (Z is null). This parses fine. However, it seems to be interpreted as the…
MichaelB
  • 1,092
  • 2
  • 16
  • 32
-2
votes
1 answer

Get TimeZone in C# based on offset from browser

Is it a way to get TimeZone Name or ID in C# just knowing offset fetched from Javascript in browser?
Vnuuk
  • 6,177
  • 12
  • 40
  • 53
-2
votes
1 answer

Create future timezone for wordpress

I am creating a wordpress project/website using lots of news events and dates for the post content. I need the overall date of the Wordpress system to be in the future. In fact 2022. So it's as if we are looking at a future website. I wonder if I…
-3
votes
1 answer

Is there any possible way to find the timezone using the ISOtime format in javascript

localDate: "2020-10-13" localTime: "20:00:00" dateTime: "2020-10-14T01:00:00Z" I have these three datas, how to find the timezone using these data.
-3
votes
1 answer

How do I convert ISO8601 to utc using joda time in JAVA?

I would like to convert: 2014-08-12T05:43:00-05:00 (YYYY-MM-DD"T"HH:MM:SS-OFFSET) To: 20140812104300Z (YYYYMMDDHHMMSSZ)
Deepak543
  • 33
  • 5
-4
votes
0 answers

Prisma is not respecting the TZ of the SQL Server

Prisma is not respecting the TIMEZONE of the SQL Server database. I have my Date object with the correct date, but with the zero TIMEZONE. My database is set to TIMEZONE -03:00... when it writes to the database, it records the time of the zero…
David Gaspar
  • 407
  • 5
  • 12
1 2 3
68
69