Most voted "timezone" questions
Timezone represents a region that has always presented the same local time during its history. Do not confuse with offset (the difference in hours and minutes from a reference time (Greenwich/GMT/UTC)), as a Timezone has the history of changes of this difference. Use this tag for questions about timezone representation, or time zone calculations.
Learn more…38 questions
Sort by count of
-
12
votes3
answers1357
viewsRetrieve date and local time of an arbitrary day in an arbitrary Timezone, considering daylight saving time
I want to show the day, hour, minute etc. in an arbitrary Timezone, in an arbitrary day. How to talk about timezone conversion is always difficult and confusing, and how to talk about timezone…
-
11
votes2
answers384
viewsGMT returns -0306 instead of -0300, what is the reason?
Locale ptBR = new Locale("pt", "BR"); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyy", ptBR); SimpleDateFormat iso = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.sssZ"); GregorianCalendar…
-
9
votes4
answers7984
viewsHow to solve 3-hour accretion problem in Date attribute in Angular?
I have the following excerpt: let data = new Date(); console.log(data); // saída: Fri Oct 18 2019 08:23:27 GMT-0300 (Horário Padrão de Brasília) When making the request with the HttpClient Angular…
-
8
votes1
answer8579
viewsIs there a Timezone for Brasilia?
I am developing an app in PHP. And I need to set Timezone for Brasilia. However in the php documentation I have: $timezones = array( 'AC' => 'America/Rio_branco', 'AL' => 'America/Maceio',…
-
8
votes1
answer661
viewsHow to show the Date object with the Timezone it was created in Javascript?
I have the following doubt, when I create an object Date with the following string: var teste = new Date("2020-06-03T12:05:03-05:00"); So I created an object Date who says they are 12:05:03 with a…
-
7
votes1
answer8513
viewsHow to do Localdatetime(Datetimezone.forID("America/Sao_paulo")) in Java.time
I wonder if there’s any way to mimic that code on java.time: LocalDateTime(DateTimeZone.forID("America/Sao_Paulo")) I don’t work very well with date in Java, if you can also explain to me what this…
-
4
votes1
answer3984
viewsTimezone do Brasil para Datetimeoffset C#
I’d like to know what’s possible Timezones available for all regions of Brazil. I saw we got the E. South America Standard Time for Brasília’s time, but for example, what would be the Timezone acre?…
-
4
votes3
answers4376
viewsCurrent date and time in time zone timestamp format
How can I print this date in timestamp format with time zone (timestampz)? from datetime import datetime, timedelta current_time = (datetime.now()) Upshot: 2019-03-28 15:14:19.108116 I would like…
-
4
votes2
answers1326
viewsHow to work with timezones without using a timestamp?
I was reading that answer, of the Stack Overflow in English, and I came across the following excerpt: For Mysql (or Mariadb), if you don’t need the time information consider using the DATE column…
-
3
votes2
answers461
viewsTimezone does not work PHP
When I give the command: echo ini.get('date.timezone') . "<br>"; nothing appears, I’ve set up in php.ini and nothing, also already put the default in the code and nothing either. Someone can…
-
3
votes1
answer97
viewsWhy does PHP no longer parse dates with "BRST"?
BRST stands for "Brasilia Summer Time" Before version 7.0.26, PHP parsed the following string: $date = new DateTime("Mon Jan 01 20:00:00 BRST 2017"); After this release, PHP returns: Fatal error:…
-
3
votes2
answers3796
views"date(): It is not safe to rely on the system’s Timezone Settings..."
I took a system for maintenance, and when migrating to another server, started to give error in an input with the current date, ex:. <input type='text' value='<?php echo date("d/m/Y");…
-
2
votes2
answers9275
viewsWrong time problem in PHP (America/Sao_paulo)
I’m running an application in a Centos production environment with updated PHP and Apache. I realized that the logs Cakephp returns a wrong time from the set in php.ini and also set inside the…
-
2
votes1
answer709
viewsSet time zone for the whole project
I recently hosted an application on a North American server, so the dates are outside the Brazilian time zone. In this way, I would like to know if there is a way to define the time zone once so…
-
2
votes1
answer1041
viewsJava and Mysql - Error - Timezone
I try to connect with Mysql, with the code below. I don’t use Hibernate or anything. It is just to connect to the database and run a simple SQL clause. I get the error that is below. I see you have…
-
2
votes0
answers27
viewsHow to configure Timezone in REPL Clojure?
How to set up REPL with the correct Timezone? When executing a query in a postgres database through a REPL the date fields are in UTC time zone I want to configure it for America/Sao_paulo. In…
-
1
votes1
answer4309
viewsUse of Timezones with Moment plugin
I’m having trouble using the Timezones plugin from the Moment library, specifically, I’m not able to load the data. I need to carry the timezones of London and São Paulo, but I couldn’t quite…
-
1
votes1
answer2047
viewsChange time in sql server 2014
Good morning, as can be seen in the image below, I made a select to get the current date and the same is +3. How can I change this date/time?…
-
1
votes2
answers18294
viewsHow to get the date right using momentjs
Personal talk. I’m having some trouble trying to use the momentjs library to work with dates. My problem is described below. ****--------- Datetime ----------**** Timestamp recebido do banco de…
-
1
votes1
answer1991
viewsRemove Timezone on request with Node.js and express.js
I have a API with node.js and express.js. In the database the fields of the type datetime are saved correctly, but in response to a request GET date fields come with 3 hours more due to time zone.…
-
1
votes1
answer2812
viewsConfigurations environment timezones Django postgres linux
Good morning to all. I have a website (Django) in a Linux hosting service with SQL Postgre bank that is in New Jersey (USA). Users are in Brazil, therefore I have a difference of Timezone. I’m sure…
-
1
votes1
answer1077
viewsNodejs does not respect the OS daylight saving schedule
I set my Timezone in the nodejs for America/Sao_paulo. But it does not respect the tables of the operating system. I use Ubuntu 18.04 LTS + Nodejs V10. The method getTimezoneOffset of Date me…
-
1
votes1
answer79
viewsWrong timezone in JAVA
I’m making an application where I need to show in a graph the real time of the capture of a certain data I tested that code: SimpleDateFormat format = new SimpleDateFormat("hh:mm:ss");…
-
1
votes1
answer1364
viewsSQL Server - Incorrect time in GETDATE (Timezone) function
I have an SQL Server running on AWS, since yesterday the function GETDATE() has been returning the time with an extra hour as if it were in the time zone -02:00. I have checked on Linux that the…
-
1
votes0
answers211
viewsIncorrect Angular Brasilian time after daylight saving time
I have an application in Angular and need to display the correct time in the system, there was no change in daylight saving time in Brazil and I am informing the time in the system one hour late.…
-
1
votes0
answers45
viewsDST in Perl and PHP on Centos
I’m having a summer-time problem at Centos 7.8. The tzdata package has already been updated to not change the time (standard system package), but the functions in Perl and PHP continue to report 1h…
-
1
votes1
answer92
viewsShow current date in a particular Timezone
I am trying to put on my site the local time of another city, through the data.timezone returned by the Open Weather API. This value is in seconds, for example, if the country has an extra 3 hours…
-
0
votes2
answers1081
viewsmultiples Timezone php
Well, I have a system where I need to use a timestamp in UTC format, and I use a system to show when the profile was visited on the site, and I update it with a timestamp, but I have a problem, on…
-
0
votes0
answers51
viewsHow to test daylight saving time in PHP?
There is an app developed in PHP which returns the time of delivery of an order. However, as we are in daylight time the date is coming wrong. How can I fix this in php ?
-
0
votes1
answer1138
viewsConverting String to date Swfit 3
Hello, I’m trying to convert a String in Date in Swift 3. However the date is always returning me with two hours more. Below is my code. let dateFormatter = DateFormatter() dateFormatter.dateFormat…
-
0
votes1
answer3702
viewsJava Daylight Saving Time - (Daylight Saving Time)
We changed the entry time of summer time 2018 on the Operating System (Linux or Windows), but the JAVA application shows the wrong time (daylight saving time).
-
0
votes0
answers754
viewsSequelize Timezone postgresql
I’m performing a sequel, but when I return the information that was recorded, returns with 3 hours above the postgres. json Insomnia: Given in postgres: I tried to change Timezone in sequelize, but…
-
0
votes1
answer70
viewsSET TIMEZONE in raw query
The raw query below shows the following error: query = Resume.objects.raw(""" SET TIMEZONE='America/Sao_Paulo'; SELECT id, datetime_now FROM resume; """) raise AssertionError("database connection…
-
0
votes0
answers73
viewsJava Date Picking Up Wrong Time
Well, I’m having the following problem getting the system time. in a java process I’m working on I performed the tests at a certain time, and the method below returned 1 hour more SimpleDateFormat…
-
0
votes1
answer336
viewsCalculate difference between dates (no time) with strtotime - use of date_default_timezone_set() gives different results
Example scenario I had a problem with a simple day count between 2 dates. One resulted me in 5 and the other 6, and was using the same dates with the same function, only in different files. The…
-
0
votes1
answer194
viewsDjango returning wrong time in the template, why?
I saved in my bank a date, in a field of the kind datetime(6), the date saved in the database is: 2020-05-13 14:13:50.000000, however, when I try to print this date in the template using {{…
-
0
votes0
answers27
viewsError: Mysql backend does not support Timezone-Aware datetimes when USE_TZ is False
I’m having a problem in the pagseguro api, I’m using Django 1.8 when I try to send a payment it presents the error "Mysql backend does not support Timezone-Aware datetimes when USE_TZ is False." I…
-
-2
votes0
answers16
viewsWhy is the Timezone: America/Sao_paulo - build-helper-Maven-plugin configuration not displayed?
It works for America/Detroit, but it doesn’t work for America/Sao_paulo, what can it be? The locale must remain en_US? <plugin> <groupId>org.codehaus.mojo</groupId>…
timezoneasked 3 years, 3 months ago Loucos por Java 1