Category "timezone"

Convert date/time in email from UTC to a user's local timezone

I work on an application that sends out automated emails notifying users of when an event will end, e.g. Hey, That event you're interested in will end on 2021-

Linux Time Zone Warning

I'd like to know the meaning of the alert message that occurs in the Linux time zone. timedatectl Warning: Ignoring the TZ variable. Reading the system's time

How to convert current datetime into given timezone and store in MongoDB & fetch in DD-MM-YYYY HH:mm format?

My local time is 'Asia/Kolkata.' And I have to convert the current DateTime into 'Pacific/Auckland' and store it into MongoDB And on fetch I have to format this

get time for timezone

I'm hurting my head again this : On postgresql, I would like to get the local time for a given timezone. So, at 15:45 GMT, I want 16:45 for +01:00, but I can't

Time Zone in Kubernetes Pods Using Environment Variable

I am trying to update my pod time to Asia/Kolkata zone as per kubernetes timezone in POD with command and argument. However, the time still remains the same UTC

How can I change Apache Cassandra's default time zone?

I need to run a Cassandra instance on Windows... Don't ask why... Anyway the issue is that I have time stamp columns that show datetime in PST time zone but I

PostgreSQL timezone takes Windows OS timezone automatically

While installing Postgresql DB 13.0-1 x64 on Windows, if I comment the "timezone" key on postgresql.conf file then "show timezone" sql query gives me "GMT". How

Getting Exchange Server's users timezone

I'm having a bit of a problem. I am working on a small outlook plugin(in c#) with the following functions(very simplified): Get all of the users from Exchange

Resolving AmbiguousTimeError from Django's make_aware

I have a code as follows: from django.utils.timezone import get_current_timezone, make_aware make_aware(some_datetime, get_current_timezone()) The make_awar

c# parse date time with timezone

How can we parse date time with time zone. <TIMESTAMP_UTC>20180523160000</TIMESTAMP_UTC> <TIMEZONE>UTC+8</TIMEZONE> this should conve

PHP date() with timezone?

So I've checked the list of supported time zones in PHP and I was wondering how could I include them in the date() function? Thanks! I don't want a default time

how to manage the timezone which are not directly supported in java

we are getting the ZoneId object by passing the id string -> ZoneId.of("US/Alaska") While getting the timezone ids from java after passing the location name,

Convert a UTC timezone in postgresql to EST (local time)

I am new to PostgreSQL and I was wondering if there is a direct way to just convert the timestamp values in a table to a different timezone using a function. In

How to convert time from one timezone to another in PHP

I have a code see below. The time zone for the time 16:17 is Europe/Vilnius. My goal is to apply time zone $tz2 = 'Africa/Dakar' and get 16:17 time in Africa/Da

Possible bug with getTransitions in PHP 8.1?

I know a lot of date-related bugs have been fixed in PHP 8.1, but it may have introduced new ones... Take this code: $time_zone_id = 'America/Vancouver'; $timeZ

Joda Time DateTimeZone

I was going through TimeZone page at joda website and I came across this -05:00 EST -05:00 EST5EDT -05:00 Etc/GMT+5 I just wanted to know what does

How to get the current timestamp in other timezones in Golang?

I need to get the current time in different time-zones. Currently I know that we can do the following: t := time.Now() fmt.Println("Location:", t.Location(),

Kubernetes cluster default timezone?

I had a question about the timezone used by my Kubernetes Cluster. I know I can adjust the timezone of the pods(https://evalle.xyz/posts/kubernetes-tz/). Howe

Get utc offset from timezone in Javascript

I need a Javascript function that given a timezone, returns the current utc offset. For example, theFuncIneed('US/Eastern') -> 240 Any idea? Thanks

Difference between timezones America/Los_Angeles and US/Pacific and PST8PDT?

I need to convert a bunch of dates in a MySQL database from Pacific time (America/Los_Angeles) to UTC. I found a great SO answer on how to do this. During my t