Skip to main content

Questions tagged [utc]

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

0 votes
1 answer
53 views

Convert human readable time to epoch inline with jq for time comparison

I am writing a bash script to compare VM creation date to an epoch time gathered in a previous step to see what VMs were recreated before a certain date. These are bosh vms which gives human readable ...
cbaum's user avatar
  • 65
1 vote
0 answers
25 views

PrismaORM shifting the UTC time from my db to the timezone of my nestJs application

I have records with timestamp fields in mySql DB. Like this: 2024-06-26T19:00:00.000Z But when I retrieve these records with prisma, they are converted back to my timezone, so the UTC time in database ...
Kabdik's user avatar
  • 21
-6 votes
1 answer
47 views

how to extract the local time and year when given a UTC time in milliseconds and the timezoneOffset?

In javascript, one is given: UTC milliseconds since 1970 timezoneOffset of the local timezone From the above, how to extract the local time and year implied by the timezoneOffset?
Bear Bile Farming is Torture's user avatar
1 vote
0 answers
37 views

How to prevent converting to UTC in the dayjs plugin?

There is a code: import * as dayjs from 'dayjs'; import * as utc from 'dayjs/plugin/utc'; import * as timezone from 'dayjs/plugin/timezone'; dayjs.extend(utc); dayjs.extend(timezone); //... console....
  Kit's user avatar
  • 11
1 vote
1 answer
173 views

Convert any TDateTime to UTC when Timezone is known

This seems as if it should be a no-brainer. Here are the knowns. I know the datetime of a "ticket". I know its timezone because one of the properties of the Ticket is it's TimeZone as in ...
Meta Mussel's user avatar
0 votes
1 answer
32 views

Using LocalDateTime in Java Spring framework, still gives Date,parse() error for MongoDb collection

I want to generate a listing report based on "listing status" and "createdOn" date on the MongoDB collection"processing-status". The "listingStatus" field ...
Arti M's user avatar
  • 21
1 vote
1 answer
62 views

Rust Local time always returns UTC on target

The following code works fine on my host system use chrono::{Local}; fn main() { let local_dt = Local::now(); println!("local_dt {}", local_dt); } local_dt 2024-06-10 16:13:46.339768796 -...
Tim Ross's user avatar
0 votes
2 answers
52 views

convert timestamp with offset to utc timestamp in python?

I have a dataframe with a column in it - date_col 2024-05-12T17:46:50.746922-07:00 2024-05-12T17:31:35.438304-07:00 2024-05-12T17:46:50.642095-07:00 2024-05-12T17:02:02.299320-07:00 I tried below ...
emiley mille's user avatar
1 vote
0 answers
44 views

Timezone Issue: Aisa/Almaty Changed from GMT+6 to GMT+5 on Feb 29th, 2024,Dayjs Libraries Not Updated

Recently, Aisa/Almaty's timezone was changed from GMT+6 to GMT+5 effective February 29th, 2024. However, it appears that the libraries are not yet updated to reflect this change, resulting in a one-...
Deepak Sarvepalli's user avatar
0 votes
0 answers
13 views

Using typescript how to get current date "local" date in "yyyy-mm-dd" format [duplicate]

I am using this: const today = new Date( new Date().toISOString().split("T")[0] + "Z" ); console.log(today); but returns correct date but format is "Sun May 26 2024 19:...
shyam yadav's user avatar
0 votes
1 answer
36 views

offsetting a dateTime object ub VB.net

Suppose we need to get a fixed time such as 1600 eastern Time in local-time. I have found the following works fine Dim dtNow As DateTime = DateTime.Now Dim NYSEclose As DateTime Dim ...
Ernesto's user avatar
  • 35
0 votes
0 answers
47 views

Parsing malformed XML UTC DateTime values in Golang

In my program, I am parsing/decoding XML files and storing values in structs, using the Decoder.Decode() function. The files contain several malformed UTC dates, intended to be parsed as time.Time ...
Dust_In_The_Wind's user avatar
0 votes
3 answers
82 views

Shift in seconds from UTC to real clock time

While fetching data from a weather API the result time zone for Indian location was 19800, which was shift in seconds from UTC to real clock time. timezone : 19800 I need that to real clock time. ...
Tony's user avatar
  • 109
1 vote
0 answers
30 views

How can the system time and computer time be different locally in .net core API?

I am running a .net core API project locally on my Windows machine, local time is utc +3. In the response header returned from the requests, the results are returned according to utc + 0. This time ...
deneme deneme's user avatar
0 votes
0 answers
35 views

Unable to reflect UTC coverage on the coverage/index.html page using Rspec ( uses Forest Admin )

Unable to reflect UTC coverage on the coverage/index.html page using Rspec in Ruby on rails, except the test_setup_db.rake file nothing is covered even after writing valid test cases ( using simple ...
user24777179's user avatar

15 30 50 per page
1
2 3 4 5
159