The TimeZone and Locale objects should be in the Groovy context. There
is no need to call the utility methods. -Adrian On 12/21/2010 3:08 AM, [hidden email] wrote: > Author: ashish > Date: Tue Dec 21 11:08:56 2010 > New Revision: 1051450 > > URL: http://svn.apache.org/viewvc?rev=1051450&view=rev > Log: > Bug fix. > Anyone working in different time zone(lets say PST) should get issue in updating the record. > > Modified: > ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy > > Modified: ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy > URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy?rev=1051450&r1=1051449&r2=1051450&view=diff > ============================================================================== > --- ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy (original) > +++ ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy Tue Dec 21 11:08:56 2010 > @@ -49,7 +49,7 @@ fromDateStr = parameters.FROM_DATE; > > fromDate = null; > if (UtilValidate.isNotEmpty(fromDateStr)) { > - fromDate = Timestamp.valueOf(fromDateStr); > + fromDate = ObjectType.simpleTypeConvert(fromDateStr, "Timestamp", null, UtilHttp.getTimeZone(request), UtilHttp.getLocale(request), false); > } > if (!fromDate) { > fromDate = request.getAttribute("ProductAssocCreateFromDate"); > > > |
I agree. I will take care of it by tomorrow. Thanks Adrian!
-- Ashish ----- "Adrian Crum" <[hidden email]> wrote: > The TimeZone and Locale objects should be in the Groovy context. There > > is no need to call the utility methods. > > -Adrian > > On 12/21/2010 3:08 AM, [hidden email] wrote: > > Author: ashish > > Date: Tue Dec 21 11:08:56 2010 > > New Revision: 1051450 > > > > URL: http://svn.apache.org/viewvc?rev=1051450&view=rev > > Log: > > Bug fix. > > Anyone working in different time zone(lets say PST) should get issue > in updating the record. > > > > Modified: > > > ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy > > > > Modified: > ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy > > URL: > http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy?rev=1051450&r1=1051449&r2=1051450&view=diff > > > ============================================================================== > > --- > ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy > (original) > > +++ > ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy > Tue Dec 21 11:08:56 2010 > > @@ -49,7 +49,7 @@ fromDateStr = parameters.FROM_DATE; > > > > fromDate = null; > > if (UtilValidate.isNotEmpty(fromDateStr)) { > > - fromDate = Timestamp.valueOf(fromDateStr); > > + fromDate = ObjectType.simpleTypeConvert(fromDateStr, > "Timestamp", null, UtilHttp.getTimeZone(request), > UtilHttp.getLocale(request), false); > > } > > if (!fromDate) { > > fromDate = > request.getAttribute("ProductAssocCreateFromDate"); > > > > > > |
This is done.
-- Ashish On Tue, Dec 21, 2010 at 10:06 PM, Ashish Vijaywargiya < [hidden email]> wrote: > I agree. I will take care of it by tomorrow. Thanks Adrian! > > -- > Ashish > > ----- "Adrian Crum" <[hidden email]> wrote: > > > The TimeZone and Locale objects should be in the Groovy context. There > > > > is no need to call the utility methods. > > > > -Adrian > > > > On 12/21/2010 3:08 AM, [hidden email] wrote: > > > Author: ashish > > > Date: Tue Dec 21 11:08:56 2010 > > > New Revision: 1051450 > > > > > > URL: http://svn.apache.org/viewvc?rev=1051450&view=rev > > > Log: > > > Bug fix. > > > Anyone working in different time zone(lets say PST) should get issue > > in updating the record. > > > > > > Modified: > > > > > > ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy > > > > > > Modified: > > > ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy > > > URL: > > > http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy?rev=1051450&r1=1051449&r2=1051450&view=diff > > > > > > ============================================================================== > > > --- > > > ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy > > (original) > > > +++ > > > ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy > > Tue Dec 21 11:08:56 2010 > > > @@ -49,7 +49,7 @@ fromDateStr = parameters.FROM_DATE; > > > > > > fromDate = null; > > > if (UtilValidate.isNotEmpty(fromDateStr)) { > > > - fromDate = Timestamp.valueOf(fromDateStr); > > > + fromDate = ObjectType.simpleTypeConvert(fromDateStr, > > "Timestamp", null, UtilHttp.getTimeZone(request), > > UtilHttp.getLocale(request), false); > > > } > > > if (!fromDate) { > > > fromDate = > > request.getAttribute("ProductAssocCreateFromDate"); > > > > > > > > > > |
Free forum by Nabble | Edit this page |