Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3323

Incorrect datetime-behavior on Android-platform

$
0
0

Hi Community

 

In a Samsung Galaxy Note Pro I'm facing an incorrect return-value of the hour-part in SystemDate-Info.

I'm located at Central European Time = GMT+2, but my Samsung device returns GMT+1.

I get always correct return-value (GMT+2) in:

-PB-runtime

-Web-runtime

-Appeon Workspace Emulation-runtime

- Apple-device but not in Samsung-device

 

I've checked the System Time 'everywhere'  in the Regional Settings, in Apple-Settings, in Samsung-settings and

also in my routers Settings = GMT+2 everywhere.

 

However, I noticed a difference regarding the SystemTime.

If getdate() is passed I get correct return-value also in Samsung (GMT+2) but not if I pass PowerScript like:

datetime ldate_client_datetime

ldate_client_datetime = DateTime(Today(),Now())

 

I need to use both of the SystemDate-info methods since Iater on in the app I track the time-difference between

server and client-machine  like this:

select time_diff = DATEDIFF(hour,getdate(),ldate_client_datetime)

 

BTW If I set the time in Samsung-device to GMT+3, my app returns GMT+2. This is the solution.

Finally, is there any Appeon-developer in the Community willing to reproduce this issue, I would highly appreciate it.

 

Best Regards

Outi Vihko


Viewing all articles
Browse latest Browse all 3323

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>