Obtains the date of the time zone of the devide through the received date. It should be informed user_code to determine to the device, because it will be the one the user is connected to, in case he does not inform himself he will take the one of the user who executes.

1 mobile.getDateInDeviceTimeZone

<mobile.getDateInDeviceTimeZone user-code='user-code'>
    <date /> ?
</mobile.getDateInDeviceTimeZone>
Example

Convert the date obtained in the expression to date in time zone of the last device to which the indicated user connected.

Copy
<xsql-script>
    <body>
        <select prefix='m_'>
            <columns>
                date_updated
            </columns>
            <from table='gmed_paises' />
            <where>
                codigo='ES'
            </where>
        </select>
        <println>
            <mobile.getDateInDeviceTimeZone user-code="jab">
                <m_date_updated/>
            </mobile.getDateInDeviceTimeZone>
        </println>
    </body>
</xsql-script>