Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

date/time comes back altered to GMT #17

Open
radoslaw opened this issue Jan 7, 2016 · 2 comments
Open

date/time comes back altered to GMT #17

radoslaw opened this issue Jan 7, 2016 · 2 comments

Comments

@radoslaw
Copy link

radoslaw commented Jan 7, 2016

Thank you for this plugin, use it with success on android !

I locally had to modify the return string from the .java file because it returned a different time than that which the user picked. I changed the line

callbackContext.success(date.toGMTString());
to
callbackContext.success(date.toString());

and suggest you change the plugin code. Let the users of the plugin worry about time zone conversion.

@bikasv
Copy link
Owner

bikasv commented Jan 12, 2016

I'd fix this issue or add extra option for convenient, but truth is that Cordova now has official repository based on my plugin, by @VitaliiBlagodir. This plugin has more features than mine, it seems.
You can find the plugin here - https://github.com/VitaliiBlagodir/cordova-plugin-datepicker
I suggest you to try that plugin or at least raise issue there. This will ensure one improved plugin, rather than multiple incomplete ones.

Also, if @VitaliiBlagodir is interested, we can sync up to finalize one big plugin.

@radoslaw
Copy link
Author

one cool thing would be to set date/time settings for native picker from plugin call as parametersay i want to show time in 24 h format but phone is set to 12 with am / pmdates with ymd, dmy
thanks for the other plugin info, will check it out
Radosław Dzięgielewski

  From: Bikas Vaibhav <[email protected]>

To: bikasv/cordova-android-plugins [email protected]
Cc: radoslaw [email protected]
Sent: Tuesday, January 12, 2016 6:18 PM
Subject: Re: [cordova-android-plugins] date/time comes back altered to GMT (#17)

I'd fix this issue or add extra option for convenient, but truth is that Cordova now has official repository based on my plugin, by @VitaliiBlagodir. This plugin has more features than mine, it seems.
You can find the plugin here - https://github.com/VitaliiBlagodir/cordova-plugin-datepicker
I suggest you to try that plugin or at least raise issue there. This will ensure one improved plugin, rather than multiple incomplete ones.Also, if @VitaliiBlagodir is interested, we can sync up to finalize one big plugin.—
Reply to this email directly or view it on GitHub.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants