Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2881

TimeZoneAdjustment

$
0
0

Hello there

 

To calculate the time-offset to the UTC-time I found an useful function SELECT CONNECTION_PROPERTY ('TimeZoneAdjustment')

described in attached file timezone.txt.

According to the documentation it will not work in UltraLite-databases. My db Sybase ASA with  SqlAnywhere 11.0 driver.

Guess it's classified as an UltraLite but not sure?

Anyway, this function works fine and returns the expected value both in a stand-alone- procedure-

call (invoked select connection....) and in an app. Nice, but it won't work in an Appeon-Deploy and Run. Returns null.

In Appeon Configuration-Settings my db is described as 'Sybase ASA ! Ultralite'.

Not sure if this is an Appeon- or Sybase-issue or both?

Since the db-driver is SqlAnywhere 11.0 the other option described in attached doc

datatype timestamp with timezone won't work either. Only with Sybase Adaptive Server 12.0.

 

Is there an other method, function to get the time-offset calculated in SqlAnywhere 11.0?

 

Best Regards

 

Outi Vihko


Viewing all articles
Browse latest Browse all 2881

Trending Articles



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