I can change the PHP time zone, but the database is still stamped with the server time. How can I change this so it shows the correct time zone? It's dynamic based on which item a user is loaded in to - so I need to be able to change at runtime.
For CakePHP 3.x, please open config/bootstrap.php file. Make search for date_default_timezone_set. Set it as you want. I set it as date_default_timezone_set('Asia/Dhaka'); for my time zone. You can get your time zone from http://php.net/manual/en/timezones.php
If it's not working, please also open config/app.php file. Make search for timezone. In your Datasources connection set 'timezone'=>'Asia/Dhaka'
Related
I want to create a simple report to get the current date and time when viewers see the report without refresh. But I am getting the current date-time when the report generated or refresh the report not when the viewer viewed (current_datetime) our report.
CURRENT_DATETIME('Asia/Kolkata')
Is there a way to add the current timestamp to a Google Data Studio report?
Currently, it is not possible to force the report to update every time it is open.
However, you can schedule it to refresh every 15 minutes.
I need to show a message when a user's last login was before the last time we update a module.
I can get the users last login using a cookie (if need be) but I can't seem to find a way of extracting the date a module was last updated/uploaded.
I am able to create a moduelINfo object which has some date fields but their all MinValue
is there a way of either:
1) Retrieving the date a module was uploaded
2) Automatically saving the date as a portal/moduleSetting when we upload or compile the module (ChrisToc)
3) Some other means of testing whether a user's last visit was before the last update.
Thanks
You will probably end up having to do this by looking directly at the Database, in the DESKTOPMODULES table, to see when the LastModifiedOnDate column is updated for the module in question. I don't know that DNN keeps track of module versions like it does with the platform itself (DNN uses the Versions table)
Hello i want to change path in settings/folder.
I try change it in setting.
I try change path from "/" to "/something/" click save button.
Seems OK, i get green notification, and my path is still "/".
Can i change this in database or something else is wrong ?
you need to change some data in the database
go to your database, under PS_CONFIGURATION table change PS_SHOP_DOMAIN and PS_SHOP_SSL to your registered domain. (ex. www.example.com).
go to your database, under PS_SHOPURL and change domain and domain_ssl to your registered domain. (ex. www.example.com).
im not sure in lower version of prestashop but this works for me in 1.6
I am attempting to create a half decent substitute for Google Reader but am running into a problem: when I first set up the distribution named in the title I was able to add a bunch of feeds which were displaying as hoped for (most recent posts first).
My assumption was that every time I visited the site, the RSS feeds would update and show any new content. However, the only content displayed is that which was new the day I added the feeds.
How can I address this? I notice that if I add a new feed, all the other feeds update to their newest content, if this helps put my problem in context.
Grateful for any help!
Feeds are fetched during creation and cron run in managing news distribution.
So try setting up cron jobs properly.
Also make sure the feeds that you are fetching has new contents ( by manually inspecting the feed xml).
can somebody please show me how to return the file modified date from the Silverlight XAP file that the client has just opened. I'm adding a tooltip that shows this date so that I can verify which version of XAP the client is running.
Thanks.
Because this project is in a state of flux, I'm doing updates every few hours. Currently there are about 3-4 users/testers but they can leave their browser open for the day. I have a poll function and I need this to send the date/time of the local XAP file back to the WCF server so it can let it know if an update is available. If so, the user will see a popup msg and prompt them to hit refresh.
I believe the RunningAssembly version would need to be updated by myself and is not automatically incremented with each build? If it is, then RunningAssembly is the way to go...
Thanks for the response..