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 268851 Details for
Bug 517598
DateTime shows wrong weekday for months with 30 days
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]
New maybe nicer patch
patch2.diff (text/plain), 962 bytes, created by
Thomas Scheller
on 2017-06-09 17:33:56 EDT
(
hide
)
Description:
New maybe nicer patch
Filename:
MIME Type:
Creator:
Thomas Scheller
Created:
2017-06-09 17:33:56 EDT
Size:
962 bytes
patch
obsolete
>diff --git a/bundles/org.eclipse.rap.rwt/js/rwt/widgets/DateTimeDate.js b/bundles/org.eclipse.rap.rwt/js/rwt/widgets/DateTimeDate.js >index a563b8a..1dcb762 100644 >--- a/bundles/org.eclipse.rap.rwt/js/rwt/widgets/DateTimeDate.js >+++ b/bundles/org.eclipse.rap.rwt/js/rwt/widgets/DateTimeDate.js >@@ -609,10 +609,10 @@ rwt.qx.Class.define( "rwt.widgets.DateTimeDate", { > }, > > _setWeekday : function() { >- var tmpDate = new Date(); >- tmpDate.setFullYear( parseInt( this._yearTextField.getText(), 10 ) ); >- tmpDate.setMonth( this._monthInt - 1 ); >- tmpDate.setDate( parseInt( this._dayTextField.getText(), 10 ) ); >+ var tmpDay = parseInt( this._dayTextField.getText(), 10 ); >+ var tmpMonth = this._monthInt - 1; >+ var tmpYear = parseInt( this._yearTextField.getText(), 10 ); >+ var tmpDate = new Date( tmpYear, tmpMonth, tmpDay ); > this._weekdayTextField.setText( this._weekday[ tmpDate.getDay() + 1 ] ); > }, >
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 517598
:
268684
|
268690
| 268851