Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryDates and Times - getting the repository to use the site timezone?Dates and Times - getting the repository to use the site timezone?
Previous
 
Next
New Post
12/20/2006 6:35 PM
 

Hi

We've got our DNN server somewhere in sunny California - and we're here in foggy cold London...

We'd like to get the CREATEDDATE and UPLOADEDDATE fields (plus the Comment Date fields) displayed in the London (zero) timezone - but nothing we change in the site settings seems to change the displayed date.

Is there anything we can do in the templates XML to alter the displayed date? I think this might actually be a general issue with our DNN set up rather than a repository one - I can't seem to get a few other fields (e.g. the site log) to report settings in our timezone either - but the only user visible problem at present is the site log issue.

Any help appreciated

Thanks

Stuart

 
New Post
2/11/2007 6:27 AM
 

Similarly, the dates shown in the item listing do not conform with the Locale I have set for my site.

For example, it shows "Sun 02/11/2007 @ 09:11" when it should show "Sun 11/02/2007 @09:11" - although the time is also wrong, as it was actually 09:11PM. My Locale is set to en-au.

Is there anything I can do to fix this (as a USER of the module, i.e. not a developer), or is a change needed in the module?

Kind regards, JP

 
New Post
2/11/2007 8:04 AM
 
If you are part developer.... then you could try what I did eventually - which is edit the SQL Stored Procedures where the articles and comments are inserted - e.g. this is what grmAddRepositoryObject became:

ALTER PROCEDURE "dbo"."grmAddRepositoryObject"

@UserName    nvarchar(150),
@ModuleID    int,
@Name        nvarchar(50),
@Description    ntext,
@Author    nvarchar(150),
@AuthorEMail    nvarchar(150),
@FileSize    nvarchar(12),
@PreviewImage    nvarchar(150),
@Image    nvarchar(150),
@FileName    nvarchar(150),
@Approved    int,
@ShowEMail    int,
@Summary    ntext

as

insert into dbo.grmRepositoryObjects (
  CreatedByUser,
  CreatedDate,
  UpdatedByUser,
  UpdatedDate,
  ModuleID,
  [Name],
  [Description],
  Author,
  AuthorEMail,
  FileSize,
  Downloads,
  PreviewImage,
  [Image],
  [FileName],
  Clicks,
  RatingVotes,
  RatingTotal,
  RatingAverage,
  Approved,
  ShowEMail,
  Summary
)
values (
  @UserName,
  getdate() + 0.2083333,
  @UserName,
  getdate() + 0.2083333,
  @ModuleID,
  @Name,
  @Description,
  @Author,
  @AuthorEMail,
  @FileSize,
   0,
  @PreviewImage,
  @Image,
  @FileName,
  0,
  0,
  0,
  0,
  @Approved,
  @ShowEMail,
  @Summary
)

select SCOPE_IDENTITY()


Note that 0.20833333 is the +5 hour time conversion (it is 5/24)

Hope that helps!
 
New Post
2/18/2007 11:17 AM
 

In the future, do you think that it will be solved without altering the procedure manually ?

DV

 
New Post
2/22/2007 7:21 AM
 
With regards to my own post above, i.e. re date format, I was able to work out how to edit the skin template and have the date/time appear as I wanted - not that different really to normal skinning.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryDates and Times - getting the repository to use the site timezone?Dates and Times - getting the repository to use the site timezone?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out