# \[Solved\] Confusing Bookmarks in Calendar

**URL:** <https://www.dolibarr.org/forum/t/solved-confusing-bookmarks-in-calendar/20517>\
**Category:** Other native modules\
**Created:** [April 6, 2021, 5:12pm UTC](https://www.dolibarr.org/forum/t/solved-confusing-bookmarks-in-calendar/20517 "2021-04-06T17:12:41Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![victorcardim](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/victorcardim/32/3085_2.png) [@victorcardim](https://www.dolibarr.org/forum/u/victorcardim)\
**Post date:** [April 6, 2021, 5:12pm UTC](https://www.dolibarr.org/forum/t/solved-confusing-bookmarks-in-calendar/20517/1 "2021-04-06T17:12:41Z")

</div>

```
*Useful information:*

- OS: Windows 10 PRO 64bits;
- Web Server: Apache 2.4.46
- PHP: 7.4.16
- Database: MariaDB 10.5.8
- Dolibarr Version: 13.0.2

```

* * *

**Possible problem encountered:**

When performing day to day routines in Dolibarr (ex: Create user, make budget, create order), I noticed that Dolibarr, despite correctly registering the date and time in events, its schedule shows a “delay” of one day, in the my case.

* * *

**Reporting in another way:**

Today, 06/04/2021 at 08:42 AM, Brazilian time, I created a new third party (client) and when consulting the agenda the event was automatically inserted on 04/05/2021. Not only the creation of a new third party but everything that was done in the system today (creating budgets, orders, among others).

* * *

**Note:**

My PHP.ini has the time zone defined for my location, that is, America / Bahia.

Include the variable ‘MAIN\_SERVER\_TZ’ in “OTHER CONFIGURATIONS” but the same occurs.

I hope I managed to explain it clearly. Anyway, I send a print in an attempt to illustrate the situation.

 ![ErrorAgendaDolibarr](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/a/adaf30f8365e9684409bff32ef03c6bf8e05f66b.jpeg)

* * *

_PS: Due to problems with my mobile device, I have no access to GITHUB, so I chose to report this possible failure here. If the topic was opened in an inappropriate place, I apologize now._

_Translated by: Google Translate_

---

<div class="post-metadata">

**Author:** ![whynot](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/w/c77e96/32.png) [@whynot](https://www.dolibarr.org/forum/u/whynot)\
**Post date:** [April 7, 2021, 7:28am UTC](https://www.dolibarr.org/forum/t/solved-confusing-bookmarks-in-calendar/20517/2 "2021-04-07T07:28:41Z")

</div>

Hej victor,

when you click on your user in the upper right corner and then click on “show more information”, which date and time is shown in “logged in since” ?

regards  
Stefan

---

<div class="post-metadata">

**Author:** ![victorcardim](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/victorcardim/32/3085_2.png) [@victorcardim](https://www.dolibarr.org/forum/u/victorcardim)\
**Post date:** [April 7, 2021, 10:03am UTC](https://www.dolibarr.org/forum/t/solved-confusing-bookmarks-in-calendar/20517/3 "2021-04-07T10:03:27Z")

</div>

Hi, whynot! How are you?

I obtain the following information at:

**View more information:**

 ![ViewMoreInfoUserDolibarr](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/2/2815668bf416d6d65e0bd3e03ec08340d14645b7.jpeg)

* * *

_Thanks for answering._

---

<div class="post-metadata">

**Author:** ![whynot](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/w/c77e96/32.png) [@whynot](https://www.dolibarr.org/forum/u/whynot)\
**Post date:** [April 7, 2021, 2:13pm UTC](https://www.dolibarr.org/forum/t/solved-confusing-bookmarks-in-calendar/20517/4 "2021-04-07T14:13:09Z")

</div>

Hej Victor,

you are starting early in the morning… :wink:

I had a quick look at the code, and as far as i can see dolibarr uses UTC. Hence some entries before a certain time may be interpreteted as yesterday. Am i right that an event is shown on the correct day if it happend after 7 or 8am your time ?

If it is that way i guess you have no chance to see it on the correct day, as the dolibarr code has to be changed.

@Dolibarr developer:  
please correct me if i’m wrong, but as far as i could see variable “$gm” isn’t set in the agenda-code. If it is empty function “dol\_mktime” sets it automatically to “auto”. And that value isn’t checked in the function. Hence Dolibarr uses UTC (i just had a look at [doxygen.dolibarr.org](http://doxygen.dolibarr.org))).

regards  
Stefan

---

<div class="post-metadata">

**Author:** ![victorcardim](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/victorcardim/32/3085_2.png) [@victorcardim](https://www.dolibarr.org/forum/u/victorcardim)\
**Post date:** [April 7, 2021, 2:54pm UTC](https://www.dolibarr.org/forum/t/solved-confusing-bookmarks-in-calendar/20517/5 "2021-04-07T14:54:29Z")

</div>

Hi Stepan!

In fact, I started production early today (laughs). 😁

I did the following steps now:

1. I closed Dolibarr;

2. I cleared cookies from the browser (Chrome 89.0.4389.114 64bit) and also Edge (89.0.774.68 64bit);

3. I accessed Dolibarr at 11:33 AM, Brazilian time, state of Bahia;

And the same goes for “View more information”.

In the “Show more information” tab, I receive the following date and time:

**07/04/2021 06:50 AM**

As attached image, below.

 ![2-ViewMoreDolibarr](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/7/74965871532ab051b05b2daf51fc986bcc9b34ef.jpeg)

* * *

_I understand that it may be a bug. Unfortunately, due to problems with my mobile device, I am unable to obtain the factoring code in 2 two steps to access GITHUB, in order to register the failure (contact with GITHUB support already made, awaiting response)._

_If the Dolibarr Team or someone in the community can register this Issue, I would appreciate it._

_Stepan, thank you very much for your help. A great week!_

---

<div class="post-metadata">

**Author:** ![ksar](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/ksar/32/514_2.png) [@ksar](https://www.dolibarr.org/forum/u/ksar)\
**Post date:** [April 7, 2021, 3:32pm UTC](https://www.dolibarr.org/forum/t/solved-confusing-bookmarks-in-calendar/20517/6 "2021-04-07T15:32:28Z")

</div>

Hello,

Can you go to ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/c/c988ec60085bb1fcc4ac3bed47bda392003f23c7.png)

And check what you have

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/9/998cb73136e1bb08f775932612be716698c20727.png)

---

<div class="post-metadata">

**Author:** ![victorcardim](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/victorcardim/32/3085_2.png) [@victorcardim](https://www.dolibarr.org/forum/u/victorcardim)\
**Post date:** [April 7, 2021, 4:07pm UTC](https://www.dolibarr.org/forum/t/solved-confusing-bookmarks-in-calendar/20517/7 "2021-04-07T16:07:08Z")

</div>

Oi Ksar, como vai? Espero que bem!

Segue informações abaixo conforme solicitado.

 ![LocationParametersDolibarr](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/3/3eea5a34b7906289e5f6d380f1c0d0c50965f663.jpeg)

Thanks for answering.

---

<div class="post-metadata">

**Author:** ![victorcardim](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/victorcardim/32/3085_2.png) [@victorcardim](https://www.dolibarr.org/forum/u/victorcardim)\
**Post date:** [April 7, 2021, 4:31pm UTC](https://www.dolibarr.org/forum/t/solved-confusing-bookmarks-in-calendar/20517/8 "2021-04-07T16:31:05Z")

</div>

Hi again, Ksar!

I didn’t understand why the option  
File enconding = iso-8859-1

Since in my PHP.ini it is declared  
default\_charset = “UTF-8”

![DefaultCharsetPHPini](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/8/8387d366606cecd3e670295a7566871a7aed9cc8.jpeg)

Any help will be welcome!

Thanks again for your attention!

---

<div class="post-metadata">

**Author:** ![ksar](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/ksar/32/514_2.png) [@ksar](https://www.dolibarr.org/forum/u/ksar)\
**Post date:** [April 7, 2021, 8:34pm UTC](https://www.dolibarr.org/forum/t/solved-confusing-bookmarks-in-calendar/20517/9 "2021-04-07T20:34:26Z")

</div>

Hi,

In PHP.ini search for “unicode.filesystem\_encoding”

---

<div class="post-metadata">

**Author:** ![victorcardim](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/victorcardim/32/3085_2.png) [@victorcardim](https://www.dolibarr.org/forum/u/victorcardim)\
**Post date:** [April 7, 2021, 10:07pm UTC](https://www.dolibarr.org/forum/t/solved-confusing-bookmarks-in-calendar/20517/10 "2021-04-07T22:07:15Z")

</div>

Hi,

I don’t have the “ **unicode.filesystem\_encoding** ” directive in my PHP.ini.

Searching for “unicode”, I found the directive “ **;exif.encode\_unicode = ISO-8859-15** ”.

However it is commented.

Anyway, I uncommented, changed “ **;exif.encode\_unicode = ISO-8859-15** ” to “ **exif.encode\_unicode = UTF-8** ” (without quotes)

I restarted the Apache server but nothing was changed.

---

<div class="post-metadata">

**Author:** ![victorcardim](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/victorcardim/32/3085_2.png) [@victorcardim](https://www.dolibarr.org/forum/u/victorcardim)\
**Post date:** [April 8, 2021, 10:54pm UTC](https://www.dolibarr.org/forum/t/solved-confusing-bookmarks-in-calendar/20517/11 "2021-04-08T22:54:43Z")

</div>

Hello guys!

It was registered on Github as a possible failure.

Ticket number: **17192**

Github ticket URL: [https://github.com/Dolibarr/dolibarr/issues/17192](https://github.com/Dolibarr/dolibarr/issues/17192)

---

<div class="post-metadata">

**Author:** ![ksar](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/ksar/32/514_2.png) [@ksar](https://www.dolibarr.org/forum/u/ksar)\
**Post date:** [April 12, 2021, 9:17am UTC](https://www.dolibarr.org/forum/t/solved-confusing-bookmarks-in-calendar/20517/12 "2021-04-12T09:17:55Z")

</div>

Hi,

Seems to be fixed by : [FIX #17192 - With tz \< 0, event is show in bad day on calendar views · Dolibarr/dolibarr@91fc78a · GitHub](https://github.com/Dolibarr/dolibarr/commit/91fc78ac9cd9b94140119821ef71540c955fd224)
