0

I have a js method that converts system's gregorian date to jalali (persian) date.

Though it's working correctly on pc and all my websites, the result on tizen watch face that uses javascript on its web layout have become invalid since july 1st. I mean the result is 1 day more than what it should be.

I know it's a leap year and the code handles it fine...

I have replaced the convert code with another sample and it's just the same.

Does anybody else have this problem or know about what the solution might be?

Is there any difference between js on pc and tizen device?

ALIRA
  • 129
  • 1
  • 9
  • Can you share some code snipet please – Iqbal hossain Jul 11 '16 at 17:14
  • https://www.google.com/url?sa=t&source=web&rct=j&url=https://github.com/farhadi/JalaliJSCalendar&ved=0ahUKEwiI0ZbTve7NAhXIHJoKHcgZADIQFggdMAE&usg=AFQjCNFO_4bihXzKySoIO02--3r3yqaChQ – ALIRA Jul 12 '16 at 17:47
  • No.. I am asking for your code which convert the date from gregorian to persian – Iqbal hossain Jul 13 '16 at 14:49
  • that's it. this is the code i am using to convert the date from Gregorian to Persian. – ALIRA Jul 23 '16 at 06:32
  • This is the library what you have used....i am asking for your tizen code where you are using this ...thank you – Iqbal hossain Jul 25 '16 at 04:01
  • I have mentioned earlier that I code web application on tizen which uses JS, and I don't code in c++ as in tizen apps. this is exactly my code on tizen web app, just javascript on a canvas html5. – ALIRA Jul 31 '16 at 15:23

2 Answers2

0

As far i know currently only Gregorian calendar is available on Tizen officially.

Source Samsung Dev

Iqbal hossain
  • 1,778
  • 3
  • 17
  • 24
  • Yes, of course. I was talking about coding in **Javascript** on _Tizen_. There I used a simple class to convert between _Gregorian_ and _Persian_ calendars. – ALIRA Aug 29 '17 at 11:36
0

I should say that it was my fault and it was wrong function input when calling convert function. I was just sending the GetMonth() result and did not consider it was returning 0-11 for month, and it is needed for convert function to get month number as 1-12. By just adding one to the month it is alright now. thanks everybody.

ALIRA
  • 129
  • 1
  • 9