timezone

Sequelize reads datetime in UTC only

谁说胖子不能爱 提交于 2019-12-21 21:35:55
问题 I have set the timezone option to my timezone ( Europe/Zagreb and I've tried with +01:00 too), and the time is saved as it should be, however, when reading the time from the database, Sequelize converts it to UTC. I have tried different timezones too, each is saved correctly, but always converted to UTC when read from database. Am I doing something wrong or is this a known issue and are there any workarounds? I create a new connection with: sequelize = new Sequelize(config.database, config

Unable to change GitLab timezone

萝らか妹 提交于 2019-12-21 21:12:51
问题 I am having a little bit of an issue trying to find where to change the GitLab timezone for my profile through the web UI. Looking at some other posts and documentation which mentioned there was an option between Public email and Preferred language , this option I am unable to find under my profile settings. Hopefully someone else has experienced the same issue, and found a solution to this, that could help point me in the right direction 回答1: If this is not exposed by the GitLab UI, you

Daylight saving ignored when creating a Java Date using new Date(aDate.getTime() + aTime.getTime())

落花浮王杯 提交于 2019-12-21 20:54:26
问题 I am currently verifying that a generated Excel sheet contains a correctly-rendered "time stamp" whose date and time part are in separate cells, and whose format is adjusted by a locale. My test case fails, as when I read back the Excel sheet's time from a String, somehow daylight saving seems to be ignored. Here's my Java code: Date now = new Date(); // [... other code, creating and reading the Excel sheet etc. ...] // from an Excel sheet String dateString = cellB2.getStringCellValue(); // e

Getting ORA-01882: timezone region not found with Oracle UCP, on aws ec2 instance?

♀尐吖头ヾ 提交于 2019-12-21 19:41:00
问题 I am running a springboot application (which is running fine on local machine), and getting ORA-01882: timezone region not found error on ec2 instance. Its looks like a config problem but not sure how to fix it. Stack trace is below Caused by: java.sql.SQLException: Unable to start the Universal Connection Pool: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource: java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1 ORA-01882: timezone

Rails daylight savings time not accounted for when using DateTime.strptime

徘徊边缘 提交于 2019-12-21 18:05:20
问题 I've been working on parsing strings and I have a test case that has been causing problems for me. When parsing a date/time string with strptime, Daylight Savings Time is NOT accounted for. This is a bug as far as I can tell. I can't find any docs on this bug. Here is a test case in the Rails console. This is ruby 1.9.3-p215 and Rails 3.2.2. 1.9.3-p125 :049 > dt = DateTime.strptime("2012-04-15 10:00 Central Time (US & Canada)", "%Y-%m-%d %H:%M %Z") => Sun, 15 Apr 2012 10:00:00 -0600 1.9.3

Show the : character in the timezone offset using datetime.strftime [duplicate]

懵懂的女人 提交于 2019-12-21 17:49:06
问题 This question already has answers here : How to parse str(my_datetime) using strptime ? (2 answers) Closed 2 years ago . What is the format string to give to strftime which would give the same output as I see for isoformat(' ') ? >>> from datetime import datetime >>> import pytz >>> dt = datetime.now(tz=pytz.UTC).replace(microsecond=0) >>> print dt 2014-05-29 13:11:00+00:00 >>> dt.isoformat(' ') '2014-05-29 13:11:00+00:00' >>> dt.strftime('%Y-%m-%d %H:%M:%S%z') '2014-05-29 13:11:00+0000'

C#/ASP.NET MVC3, convert from DateTime.UtcNow, to client's timezone. How to get timezone info?

梦想与她 提交于 2019-12-21 17:17:58
问题 I store dates as UTC, by calling DateTime.UtcNow when inserting new records. I want to convert that date to the visitor's timezone. There's a method on TimeZoneInfo to do it: public static DateTime ConvertTimeFromUtc( DateTime dateTime, TimeZoneInfo destinationTimeZone ) but where can I pull TimeZoneInfo destinationTimeZone from, in asp.net mvc3? Is it reliably available in the request object? 回答1: Unfortunately it is not as straightforward as one would expect. The Request object will not

How to convert time in YYYY-MM-DDTHH:mm:ss.SSSZ format to default timezone? [duplicate]

◇◆丶佛笑我妖孽 提交于 2019-12-21 17:17:10
问题 This question already has answers here : Converting ISO 8601-compliant String to java.util.Date (28 answers) Closed 3 years ago . The time that I am getting is in the format "2011-07-31T08:16:37.733Z". Actually the Z should be the timezone and then that time is converted to local timezone. How do I actually convert this time to default timezone now. 回答1: RFC 3339 describes a specific ISO 8601 'profile' for date/time representation. If using 3rd-party open-source libraries is an option, take a

Querying Oracle TIMESTAMP WITH TIMEZONE

此生再无相见时 提交于 2019-12-21 17:11:33
问题 I have a column in an Oracle DB table that is of type TIMESTAMP(6) WITH TIME ZONE . There are data rows with data from different timezones, some UTC, some in other timezone offsets. Is there a way I can query the Oracle table so that the results always come back as UTC, with the appropriate time shifting being done? Is there something that can be done on the query itself, or perhaps altering the session somehow? I've tried altering the session timezone to Utc, but this seems to only impact

What is the default time zone for an XML Schema dateTime if not specified?

不羁的心 提交于 2019-12-21 11:22:50
问题 I'm trying to determine what the default time zone is for an XML Schema dateTime, when it is not specific. The time zone portion at the end is optional and it may be omitted: 2013-01-11T16:02:55 I read in this answer that the time zone is undetermined when not specified. I read in the comments to this question that the default is UTC if not specified. I also read through the W3C definition and that didn't give me a clear answer. Can any experts point me to where this is specified? 回答1: An