Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 202541 Details for
Bug 356362
[DateTime] Can't choose 30.09.2011
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch
Bug-356362.patch (text/plain), 2.19 KB, created by
Ivan Furnadjiev
on 2011-08-31 12:38:41 EDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Ivan Furnadjiev
Created:
2011-08-31 12:38:41 EDT
Size:
2.19 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rap.rwt >Index: js/org/eclipse/swt/widgets/DateTimeDate.js >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.rwt/org.eclipse.rap.rwt/js/org/eclipse/swt/widgets/DateTimeDate.js,v >retrieving revision 1.1 >diff -u -r1.1 DateTimeDate.js >--- js/org/eclipse/swt/widgets/DateTimeDate.js 7 Jul 2011 11:22:40 -0000 1.1 >+++ js/org/eclipse/swt/widgets/DateTimeDate.js 31 Aug 2011 16:36:35 -0000 >@@ -1,13 +1,13 @@ > /******************************************************************************* >- * Copyright (c) 2008, 2011 Innoopract Informationssysteme GmbH. >+ * Copyright (c) 2008, 2011 Innoopract Informationssysteme GmbH and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at > * http://www.eclipse.org/legal/epl-v10.html > * > * Contributors: >- * Innoopract Informationssysteme GmbH - initial API and implementation >- * EclipseSource - ongoing development >+ * Innoopract Informationssysteme GmbH - initial API and implementation >+ * EclipseSource - ongoing development > ******************************************************************************/ > > qx.Class.define( "org.eclipse.swt.widgets.DateTimeDate", { >@@ -621,19 +621,17 @@ > var result = 31; > var tmpMonth = this._monthInt - 1; > var tmpYear = parseInt( this._yearTextField.getText(), 10 ); >- var tmpDate = new Date(); >- tmpDate.setYear( tmpYear ); >- tmpDate.setMonth( tmpMonth ); >+ var tmpDate = new Date( tmpYear, tmpMonth, 1 ); > // Test 31 > tmpDate.setDate( 31 ); > if( tmpDate.getMonth() != tmpMonth ) { > result = 30; >- tmpDate.setMonth( tmpMonth ); >+ tmpDate = new Date( tmpYear, tmpMonth, 1 ); > // Test 30 > tmpDate.setDate( 30 ); > if( tmpDate.getMonth() != tmpMonth ) { > result = 29; >- tmpDate.setMonth( tmpMonth ); >+ tmpDate = new Date( tmpYear, tmpMonth, 1 ); > // Test 29 > tmpDate.setDate( 29 ); > if( tmpDate.getMonth() != tmpMonth ) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 356362
:
202541