# Browser Library and Calendar function

**URL:** <https://forum.robotframework.org/t/browser-library-and-calendar-function/3230>\
**Category:** Browser\
**Created:** [8 February 2022 10:34 UTC](https://forum.robotframework.org/t/browser-library-and-calendar-function/3230 "2022-02-08T10:34:05Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![kalle.mujunen](https://avatars.discourse-cdn.com/v4/letter/k/3da27b/32.png) [@kalle.mujunen](https://forum.robotframework.org/u/kalle.mujunen)\
**Post date:** [10 February 2022 12:10 UTC](https://forum.robotframework.org/t/browser-library-and-calendar-function/3230/21 "2022-02-10T12:10:34Z")

</div>

I have this line: Library fi\_date.py and also these files are in the same directory. It looks like this: I ran it with Library f\_date.py and with Resource …/Resources/fi\_date.py. Both of cases failed.

\*\*\* Settings \*\*\*  
Library fi\_date.py  
Library String  
Resource …/Resources/fi\_date.py

\*\*\* Test Cases \*\*\*  
FI date test  
${mydate}= Finnish Date 2022-01-13  
Log ${mydate}

```
${mydate}= Finnish Date	2022-01-07
Log ${mydate}

```

FI date test today  
${MyDateU}= Finnish Date Today  
${mydatel}= Convert To Lower Case ${MyDateU}  
Log ${mydatel}

Sorry about all of this. I have tried to solve this couple of days alone now. It seems that my situation right now is this:

Resource …/Resources/Thinking/DeadEnd.mind

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [10 February 2022 13:17 UTC](https://forum.robotframework.org/t/browser-library-and-calendar-function/3230/22 "2022-02-10T13:17:56Z")

</div>

Try creating my example as fi\_date.py and fi\_date.robot, just those 2 files in the same directory and see if you can get the same result as I did.  
Once you have that working, from there you can modify things to see what works and what doesn’t, at least you’ll have a reference point.

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [10 February 2022 22:15 UTC](https://forum.robotframework.org/t/browser-library-and-calendar-function/3230/23 "2022-02-10T22:15:52Z")

</div>

Ok I loaded up a windows virtual machine that had python 3.10 on it to try, it’s not the exact same version, I had 3.10.2 where as you had 3.10.0, as you can see the example I gave you works on Windows 10 and python 3.10.2, so there might be a bug in python 3.10.0?

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/b/bf75b9d14cdf7631f7dafdb5ec3ffb7e47026a57.png)  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/d/d185abaa4939e8548e6dfa3b14105ad43989ee31.png)  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/2/27346bc804f05983d7eff54e46105ccabc5631a1.png)  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/b/be097a4e1e2d684ee74a11a078617d9505490d79.png)

---

<div class="post-metadata">

**Author:** ![kalle.mujunen](https://avatars.discourse-cdn.com/v4/letter/k/3da27b/32.png) [@kalle.mujunen](https://forum.robotframework.org/u/kalle.mujunen)\
**Post date:** [11 February 2022 06:13 UTC](https://forum.robotframework.org/t/browser-library-and-calendar-function/3230/24 "2022-02-11T06:13:53Z")

</div>

Hi

Thanks for advice. I updated my Python for 3.10.2 and tried to run this again. I have got following as a result. I’ll continue to digging what’s creating a problem:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/9/97d5a502a789a5ebd36de76c33efb1dadc5c2d8f.png)

I ran those files from the same directory. Otherwise successful, but not supported locale.

Kalle

[Previous page](https://forum.robotframework.org/t/browser-library-and-calendar-function/3230.md?page=1)
