Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Problem with timestamp.

$
0
0
I have problem with timestamp in smartgwt. I use smartgwtpro 4.0p 2013-10-28, smartclient: v9.0p_2013-10-28Pro
When I'm sending the timestamp from server to client i have timestamp with miliseconds but when I'm sending the same timestamp from client to server, timestamp loses information about miliseconds.

Why smartgwt loses information about miliseconds?
How to solve this problem?

I am loading data to client and
submiting to server by valuesmanager.

Code:

Here is my datasource:

<DataSource dropExtraFields="true"
beanClassName="pl.model.Test"
willHandleAdvancedCriteria="true" ID="Test" sparseUpdates="true"
generatedBy="v8.2p_2012-09-06/EVAL Deployment 2012-09-06" >
<fields>
        <field name="datew" length="26" canEdit="true" required="false" type="datetime" >
        <field name="datemod" length="26" canEdit="true" required="false" type="datetime" >
</fields>

 <operationBindings>
        <binding operationType="add" serverMethod="addDMI">
            <serverObject lookupStyle="spring" bean="testService" />
        </binding>
        <binding operationType="fetch" serverMethod="fetchForAddDMI" operationId="add">
            <serverObject lookupStyle="spring" bean="testService" />
        </binding>
        <binding operationType="fetch" serverMethod="fetchForViewDMI" >
            <serverObject lookupStyle="spring" bean="testService" />
        </binding>

    </operationBindings>

</DataSource>


Viewing all articles
Browse latest Browse all 4756

Trending Articles