Timezone library - how to use in Livecode Server?

Ralf Bitter rabit at revigniter.com
Wed Sep 5 05:43:47 EDT 2018


Matthias,

in my understanding you need to add
the path to the resources where all the
zoneinfo is lacated using "with resource path".


Ralf


> On 5. Sep 2018, at 10:34, Matthias Rebbe via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Hm,
> 
> seems i was a little bit to quick with my answer.
> 
> Loading the .lcm and  “put timezones()” outputs all timezones.
> 
> But executing the following lines
> 
> load extension from file "./extensions/com.livecode.library.timezone/module.lcm"
> put  the seconds into tDate
> put FromUniversaltime(tDate, "Europe/Berlin") into tDate
> convert tDate to dateItems
> put tDate
> 
> returns these errors
> file "/home/xxxxxxx/public_html/xxxxxx/tz.lc"
>  row 4, col 5: extension: error occurred with domain (runtime)
>  row 4, col 5: extension: error occurred with description (unable to load foreign library)
>  row 4, col 5: extension: error occurred with file (timezone.lcb)
>  row 4, col 5: extension: error occurred with line (62)
>  row 4, col 5: extension: error occurred with column (1)
>  row 4, col 5: extension: error occurred with file (timezone.lcb)
>  row 4, col 5: extension: error occurred with line (737)
>  row 4, col 5: extension: error occurred with column (1)
>  row 4, col 5: Function: error in function handler (FromUniversaltime)
>  row 4, col 5: put: error in expression
> 
> This works in LC IDE (w/o Line 1).
> 
> 
> Regards,
> 
> Matthias





More information about the use-livecode mailing list