Questions tagged as 'timezone'

3
answers

Retrieve local time and date 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, on an arbitrary day. How to talk about timezone conversion is always difficult and confusing, and how to talk about timezone conversions in JavaScript is even more difficult...
asked by 06.02.2014 / 00:13
2
answers

GMT returns -0306 instead of -0300, what's 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 calendar = new GregorianCalendar(ptBR); String data...
asked by 01.12.2015 / 18:10
1
answer

Is there timezone for Brasilia?

I'm developing an app in PHP. And you need to set Timezone to Brasilia. But in the php documentation I have: $timezones = array( 'AC' => 'America/Rio_branco', 'AL' => 'America/Maceio', 'AP' => 'America/Belem', 'AM' => 'Ame...
asked by 29.11.2017 / 16:01
2
answers

Timezone does not work PHP

When I give the command: echo ini.get('date.timezone') . "<br>"; nothing appears, I already configured it in php.ini and nothing, I also already put the default in the code and nothing too. Can anyone help me?     
asked by 18.01.2017 / 22:53
2
answers

"date (): It is not safe to rely on the system's timezone settings ..."

I took a system to perform maintenance, and when migrating to another server, started to give an error in an input with the current date, eg. <input type='text' value='<?php echo date("d/m/Y"); ?>'> But you are giving the follow...
asked by 11.01.2018 / 14:02
2
answers

Problem with wrong time in PHP (America / Sao_Paulo)

I'm running an application running in a CentOS production environment with PHP and Apache updated. I noticed that CakePHP's logs return a wrong time from the one defined in php.ini and also set inside the application's Bootstrap by...
asked by 20.01.2015 / 18:37
1
answer

TimeZone from Brazil for DateTimeOffset C #

I would like to know what possible TimeZones are available for all regions of Brazil. I saw that we have E. South America Standard Time for Brasilia time, but for example, what would Timezone be in Acre?     
asked by 14.11.2018 / 18:49
1
answer

Set time zone for the entire project

I recently hosted an application on a North American server, so the dates are outside the Brazilian timezone. This way, I would like to know if there is a way to set the time zone only once so that every time you use DateTime.Now in a var...
asked by 18.07.2016 / 15:05
2
answers

How to get the correct date using momentjs

Personal speech. I'm having some problem trying to use the library momentjs to work with dates. My problem is described below. ****--------- Datetime ----------**** Timestamp recebido do banco de dados -> 2016-07-12 17:21:40 <- ES...
asked by 13.07.2016 / 16:28
1
answer

Remove timezone on request with node.js and express.js

I have API with node.js and express.js . In the database the fields of type datetime are saved correctly, but in the response of a request GET the date fields come with 3 more hours due to the time zone. I am...
asked by 02.10.2017 / 16:53