Blog Module - jquery data editor

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
9/19/2013 9:53:47 AM
Gravatar
Total Posts 4

Blog Module - jquery data editor

Hi all, 
we are using mojoportal and its blog module for an italian web site.
We're a facing problems with the jquery data editors that manage the start and end datetime of posts.
We have 2 kind of problems:

  1. When the EditPost.aspx page loads the edit item data in form, the start and end date of the editing article are in wrong format.
    The correct datetime format should be dd/MM/yyyy hh:mm but the page loads sets the fields with the format dd/MM/yyyy hh.mm (note the . used as time separator).
    After selecting the date and time using the jquery editor the resulting format in the field is correct, but the load error on the fields requires us to always select date and time from jquery even if they don't need modifications.
  2. We have problems with the publication system of the blog items because seems that the time is six hours back then the current time we have in italy. For example:
    If here in italy is 16:00 and we need that the article we are writing is immediatly published we must set the start time of the post at 10:00.

Looking at the site settingshere you are the current instance details:

  • mojoportal version 2.3.9.7 MSSQL
  • operating system: Microsoft Windows NT 6.1.7601 Service Pack 1
  • .net version: v2.0.50727 'partial trust' execution
  • Server time zone: W Europe Daylight Time
  • Server time (at the moment I'm writing...): 19/09/2013 16:41:33
  • web config globalization culture and uiCulture parameter: it-IT

Thank you in advance for your support

Luca Arpaia

9/25/2013 12:52:59 PM
Gravatar
Total Posts 18439

Re: Blog Module - jquery data editor

Hi Luca,

Actually the correct format for Italian is the one set when the page loads with a dot separator hh.mm but there is a bug/limitation in the time picker portion of our jquery widget where it uses hh:mm

Server side .NET code populates the textbox with the correct format when the page loads but the date/time picker if used formats it incorrectly with hh:mm and it fails to read the correct format from the data in the textbox. So the server side code is correct but the javascript is not matching what the server side is doing. Unfortunately I don't have any immediate fix for this problem, it is hard to find a good time picker that integrates with jquery ui datepicker.

I have logged this problem in our project tracker and will keep my eyes open for a better time picker widget.

Note also that I do NOT recommend modifying the <globalization section of Web.config, you should leave that alone and force Italian from user.config like this:

 <add key="UseCultureOverride" value="true" />
  <add key="site1culture" value="it-IT" />
  <add key="site1uiculture" value="it-IT" />

as documented in Forcing a Specific Language

Best,

Joe

9/25/2013 12:55:13 PM
Gravatar
Total Posts 18439

Re: Blog Module - jquery data editor

about problem 2, make sure that in your user profile you have selected the correct time zone. The date shown on the page is in the time zone of the user and is adjusted to UTC before it is stored in the database. Also make sure the correct time zone is selected in Site Settings.

9/27/2013 9:04:33 AM
Gravatar
Total Posts 4

Re: Blog Module - jquery data editor

Hy Joe,

thank you very much for your answers.

I've understood the problem with jquery time picker, thanks for the clarifications and ok, we'll wait for a better date picker!

About problem 2.
I've restored the original globalization configuration in web.config and setup the Italian ui culture override on the user.config file as suggested.
Also on site settings the correct timezone in selected, and also my browser is using italian language.

The problem I described is still there: if I post now a new blog item (in italy is 15.47 PM) i must set the item start datetime on 9.47 AM to let it be immediately published. 
I think that the problem should still be on the jquery time picker as at the time I start creating a new blog item it is set on 9.47 AM and not at 15.47 PM. What do you think about?

Let me know if I can give you some more informations and thank you very much for your support

bye bye
Luca

9/27/2013 2:41:54 PM
Gravatar
Total Posts 18439

Re: Blog Module - jquery data editor

Hi Luca,

What about time zone on your user profile? ie under "My Account"

Time displayed is adjusted to the timezone of the user profile for the user who is editing the post. Then on postback it is converted from that timezone to utc. 

Site Settings time zone is what the time is adjusted to for users who are not logged into the site. For users who are signed into the site it is adjusted to the time zone of the user profile

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.