Domino 8.5.3 regression with Date time - xpages

We have recently been testing 8.5.3 and have identified a new issue with how date time values are rendered on xpages.
Issue:
Any datetime fields containing just the time value (e.g., 11:00 AM) when shown in an editable field on xpages gets converted to a different value due to TZ.
If the server is in India (GMT + 5.30) it adds 5.5 hrs and shows 11:00 AM as 04:30 PM. Basically, it assumes all times as GMT unless specified.
This new value also gets saved in the document when saved (so it stores it as 04/08/2012 04:30:00 PM ZE5B) as a result corrupting the original value.
This did not use to happen in 8.5.2 or before and has affected several of our apps.
Has anybody seen this before and can suggest a fix or workaround.
Would appreciate any help.

LO67745: XPAGES: CORRECT TIME DOESN'T SHOW ON DATE TIME PICKER
http://www-01.ibm.com/support/docview.wss?uid=swg1LO67745
8.5.3 FP3 has the fix.

Did you check the application properties? You can specify what timezone to use. Server or browser. When you open a PMR post the PMR number here.

Related

Timestamps for future intervals

I have to store my user's availability for example (mon-wed, 10 am to 1 pm), and then use this data to query their calendars to check if they are busy/free
So let's say today it's 29 Jan, Saturday. I want to check availability for the upcoming Tuesday. Now I'll have to generate timestamps for the upcoming Tuesday which would be 1643673600 to 1643846400
How do I generate them? I wanted to write some logic but I have failed. I want to consider the user's timezone too. Is there any API service or package that I can use for this purpose?
check "day.js" npm package, that should help you a lot, it has unix timestamps as well as timezones support
more info https://day.js.org/en/
There is a package called "MomentJs".
Here is a link to the main document page
Here is a link to the document for Unix Timestamp
Use this below code if it solves your problem.
moment().add(3, 'days').unix()
console.log(moment().add(3, 'days').unix());
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>

Xpages : Time Picker, Cannot type specific time (Domino 9 Server)

I need help regarding time picker in Domino 9.
I cannot type an specific time in the textfield. but when I try to put my application in domino 8.5, it works fine.
Time picker only allows time with every 15 mins. and I cannot modify it using the its textfield.
My output should be like this. (12:13 AM)
I there any solution regarding this issue?
regards,
Thanks!
[Edited]
I suggest you to check your version and install the FP2, since this FP corrects a bug related to the default value of the pick date. I'm sorry I can't test the Xpage now.
[original response]
In The standard client it works (I can edit the field), maybe should you install FP2 see http://www-10.lotus.com/ldd%5Cfixlist.nsf/WhatsNew/7ff6a78cb16153d085257d2b0062d7b8?OpenDocument. Which mentions:
+HOKA8RZ5KL (LO67745) - Fixes issue in Xpages where the
correct date (or time) won't show on date time picker. This is a
regression in 8.5.3.
I tested with IBM Notes 9
Social Edition
Release 9.0.1FP2 SHF202
Revision 20140804.1000-T00202SHF-FP2 (Release 9.0.1FP2 SHF202)

Time picker defaults opens at 00:00 irrespective of selection

Dynamics CRM 2011 on premise.
On new Appointment and new Service Activity forms, Start Time defaults to now.
However, on opening, the time picker begins at 00:00, rather than a time close to now.
A user reports that it used to open with the right time selected but broke a couple of months ago after an update.
Can I fix it?
This is a known bug. According to Microsoft, it will be fixed "in the future".
https://community.dynamics.com/crm/f/117/p/112983/228137.aspx#228137

Lotus Notes XPinC DateTime format issue

I am working on a XPage application which will work on both web and client. There is an action which will adjust the date object to 20 days and store it again in the current document. I got an issue, that the code is working perfectly on web and win-xp OS XPinC. I found that there is an issue with win-7 XPinC. And compare with two different win7 machine for the same document. But working on PC but not in another. Finally concluded with that the issues is due to the current machines datetime settings. But I cannot go and check/change all the pc's datetime format. Please advice how can I handle this.
Thanks in advance.
This has been doing my head in for several days.
Xpages works great in my browser, but the date/time is all screwed up when viewed in LN.
The solution is to go into "File" -> "Preferences" and then "Regional Settings".
Change "Content Language" from "English" to "English (United Kingdom)".
A pet hate of mine is that most computers default to the crazy US way of displaying the date, i.e. month/day/year when the rest of the world uses day/month/year.

CodeIgniter calendar date display - showing one day early in production

I'm using the CodeIgniter calendar class to generate an availability calendar. I use a loop to check if a date is in the "reserved" array, and if it is, give that cell a class of booked.
For some reason, on my server (Ubuntu 11.04), when the calendar is displayed the booked dates are showing one day earlier than they should. I'm trying to debug this, as the problem does not appear on my local machine and the values in the database are correct. Since it works on my local machine, I think it shouldn't be a code problem, either.
I've verified that the php.ini settings for date.timezone are identical, and the system dates (when you type 'date' in command line) are also identical.
Can anyone give me further insight into how to debug this problem?
I ended up figuring out where my issue was. The timezone on my database server was incorrect (6 hours behind my production server).

Resources