blackberry / VSPlugin

Visual Studio Plugin for BlackBerry Native SDK
9 stars 15 forks source link

[3.0.0015] 30 minutes difference is shown between system time and time in debug token details #706

Open pvallabhaneni opened 9 years ago

pvallabhaneni commented 9 years ago

Environment: System OS : Win 7 64bit and Win 8.1

Steps to Reproduce:

  1. Connect a device to the system.
  2. Go to Blackberry->Options->Blackberry->Targets and click "Upload debug token..." button
  3. Click "Create..." button and observe that the debug token is created in "Debug Token" section
  4. Click "Upload" button and observe that the debug token is uploaded into the selected device.

Actual Result: Observe that there is a time difference of 30 minutes between the system time and the expiry time of debug token in both the "Debug Token" and "Onto Device" sections. But the debug token uploaded to the device is shown with system time correctly.

system dt

device debug token

phofman commented 9 years ago

So that's really strange, especially when typical errors are based on whole hours as time-zones differ, not half-hour. Additionally I don't process the dates at all. Data in those boxes comes from calling:

blackberry-deploy.bat -listDeviceInfo <ip> -password <password> or blackberry-airpackager.bat -listManifest <dbg-token-path>

And from your screenshot those values are actually in sync. Just BB10 shows something different. Hard to guess, who has problem with the conversion. Could you provide dumps of outputs of those tools? I am especially interested in values of debug-token-expiry-date field.

On my end all are the same.

HINT: Yes, I know, following pictures are in polish, but the dates are fairly easy to decipher ;)

img_20150216_133803 localdebugtokeninfo

pvallabhaneni commented 9 years ago

Verified the issue using 3.0.0017 plugin on Win 7 64bit and Win 8.1.

Results are as follows:

Win 7: time win 7

Win 8.1: time win 8 1