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>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Auser-code | String | User that you want to take the time zone, the last device with which the user has connected to the system will be obtained. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Edate | Date |
Returns | |
---|---|
Type | Description |
Date | Converted date. |
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>