You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2018/02/21 12:13:00 UTC
[jira] [Commented] (CB-13538) Globalization plugin on Android
returns wrong DST
[ https://issues.apache.org/jira/browse/CB-13538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16371303#comment-16371303 ]
jcesarmobile commented on CB-13538:
-----------------------------------
Reproduced withÂ
{code}
navigator.globalization.getDatePattern(
function (date) { alert('pattern: '+date.pattern+'\n'+
'timezone: '+date.timezone+'\n'+
'iana_timezone: '+date.iana_timezone+'\n'+
'utc_offset: '+date.utc_offset+'\n'+
'dst_offset: '+date.dst_offset+'\n'); },
function () \{ alert('Error getting pattern\n'); },
{ formatLength: 'short', selector: 'date and time' }
);
{code}
> Globalization plugin on Android returns wrong DST
> -------------------------------------------------
>
> Key: CB-13538
> URL: https://issues.apache.org/jira/browse/CB-13538
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-plugin-globalization
> Affects Versions: 6.4.0
> Environment: Android 6 and 7, running a IONIC / Cordova APP.
> Reporter: Carlo Gi
> Priority: Minor
> Labels: dst, plugin, timezone
>
> It seems like the globalization plugin is reporting a wrong Daylight Saving Time data.
> Example:
> today is 6 november 2017. In Paris there is GMT+1 TimeZone and Daylight Saving time is disabled (switched off, on sunday 29 october 2017).
> The plugin instead of returning the following data:
> utc_offset: 3600
> dst_offset: 0
> is returning this data:
> utc_offset: 3600
> dst_offset: 3600
> On IOS it is working as expected:
> utc_offset: 3600
> dst_offset: 0
> (btw: on IOS there is a different issue when DST is active. Maybe will be discussed on another issue).
> Anybody knows this issue and working on it?
> Thankyou
> Carlo
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org