After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 777429 - week-view: timed event added in RTL locale is added somewhere else
week-view: timed event added in RTL locale is added somewhere else
Status: RESOLVED FIXED
Product: gnome-calendar
Classification: Applications
Component: User Interface
unspecified
Other Linux
: Normal major
: 3.26
Assigned To: GNOME Calendar maintainers
GNOME Calendar maintainers
Depends on:
Blocks:
 
 
Reported: 2017-01-18 07:16 UTC by Mohammed Sadiq
Modified: 2017-03-29 03:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
week-grid: fix event creation on RTL languages (1.52 KB, patch)
2017-03-29 03:04 UTC, Georges Basile Stavracas Neto
committed Details | Review

Description Mohammed Sadiq 2017-01-18 07:16:41 UTC
Timed event added in week view with RTL locale is saved somewhere else.

How to reproduce:
1. Open calendar
   LANG=ar_SA jhbuild run gnome-calendar
2. Switch to week view
3. Add some event to some date
  Eg: click and drag from 11:00 to 12:00 on Jan 19

Result:
The event is created from Jan 20, 11:30 to Jan 23, 11:30 (this may be different based on local timezone, I don't know)
Comment 1 Georges Basile Stavracas Neto 2017-03-29 03:04:29 UTC
Created attachment 348913 [details] [review]
week-grid: fix event creation on RTL languages

On RTL languages, the calcs to detect the start and end
of the new event were wrong, leading to the weird behavior
it currently has.

Fix that by correctly calculating the start and end cells
on RTL languages.
Comment 2 Georges Basile Stavracas Neto 2017-03-29 03:05:57 UTC
Thanks for the report.

Attachment 348913 [details] pushed as 2f28671 - week-grid: fix event creation on RTL languages