When i submitting form My Timestamp function takes Hostgator Server time. But i need to change my time zone "(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi". How i can change my time zone through PHP, PhpMyAdmin, or Hostgator server. if there any possible option plz help.
In Your header file or some common file which included in all the pages there you add this line in the top.
date_default_timezone_set('Asia/Kolkata');
Related
My application uploads new file version or creates new file in OneDrive via Microsoft Graph C# SDK and traks changes in it while application is runing. I've noticed that after 1-2 seconds LastModifiedDateTime of new file has been changed and it's critical for me because i know that neither my app or other users\clients have changed new file metadata or content. Also i've noticed that cTag has not been changed while eTag was changed with LastModifiedDateTime.
Who updates new file metadata in OneDrive after file uploading? And how rid of it?
You can use fileSystemInfo.lastModifiedDateTime ( NOT lastModifiedDateTime).
(sorry I'm japanese. probably you can read english page.)
https://learn.microsoft.com/ja-jp/onedrive/developer/rest-api/resources/driveitem?view=odsp-graph-online
It is as follows.
JSON {
lastModifiedDateTime, # Date and time the item was last modified. Read-only.
fileSystemInfo: {
createdDateTime,
lastAccessedDateTime,
lastModifiedDateTime # The UTC date and time the file was last modified on a client.
}
I'm creating sqlite in application and I wanna use in today page but they have different file path. I can't reach my db that reason.
It gives me path like this ~/Application on application but when i try to reach for today page ~/PlugIns/.. it happens like this.
How could i reach my db both of page, How can i do that. Thank you.
I wrote a Windows NetBeans program to rename files to "file creation date/time", i.e. 150912_140023.JPG, to merge photos chronologically from a camera, Droid and iPad. I encountered a problem with the iPad .jpg files.
I am seeing an inconsistency in the file dates. If I do a DOS dir command on an iPad photo, I see a file date of 09/12/15. This is the date my program is retrieving. However, in a windows directory window, I see a date of 09/07/15 for the same file.
The correct date of the file is 09/07/15.
Why is there a difference? Can I replicate the date determination performed by a directory window to get the correct date?
The iOS filesystem stores four timestamps for a file: last access time, last data modification time, last status change time (time that the inode was changed), and creation time.
NTFS stores three timestamps for a file: last access time, last write time, and creation time.
Copying a file from an iPad to Windows might update any of these times on the copy, depending on how the copy program was written.
The DIR command displays the last write timestamp by default (I believe). You can specify which timestamp you want it to display using a command-line flag. The /t:c flag requests creation time. The /t:a flag requests last access time. The /t:w flag requests last write time.
It sounds like you want to run DIR /t:c.
A couple months ago I set up a rails app. Uploaded picture were saved in a private bucket on S3. I could download them through an expiring URL. Now that is not working anymore, even though I did not change anything. What could be the reason? A timezone issue?
My generated Link looks like this:
http:// [bucket] .s3-eu-west-1.amazonaws.com//original/image.jpg?AWSAccessKeyId= [AQCCESS_KEY] \u0026Expires=1408020974\u0026Signature= [signature]
With this linked I tried to download a file at 10.56 am central european time on August 10th. Might there be a time zone issue? How to I read the Expires parameter in that URL.
Any idea what could be the problem here?
Thank you in advance!
This answers your - 'How to I read the Expires parameter in that URL.?' question:
The Expires time is defined as Epoch time. In order to see what that time is, you can run the following ruby code:
require 'date'
DateTime.strptime("1408020974",'%s').to_s
which returns this:
"2014-08-14T12:56:14+00:00"
Hope it helps.
Okay, I found the problem:
As I said, the link looks like this:
http:// [bucket] .s3-eu-west-1.amazonaws.com//original/image.jpg?AWSAccessKeyId= [AQCCESS_KEY] \u0026Expires=1408020974\u0026Signature= [signature]
The problem is the u0026 which has to be replaced by "&"-sign. I will think about how to solve the problem. But at least it is identified :)
How can I change the file's last modified date using the Document List Api? Is this possible? Google Drive client somehow does it!
Try to use files.touch
Set the file's updated time to the current server time.
POST https://www.googleapis.com/drive/v2/files/fileId/touch
Bu modifying a file content the last modified date should be changed automatically.
Are you having issues with this?
use touch then you can change it