I have an application in Vuejs (Typescript) that get date from User, I am facing two issues for the time being.
Every time the User enter date of birth system decreases one.
If user enter 03/05/1981 and the System date formate is MM/dd/yyyy it store 5th of March.
I can't tell every person to change format to dd/MM/yyyy, or is there a way around.
Thanks
By the details you have provided I assume everything happens in the browser.
Please check your browser localization settings even if your computer localization is setup as US if the browser has a different setting then it will be overwritten.
If you are sending the information to a different server please check how are you formatting the date in your request and which are the server side settings about localization.
Hope this helps.
Related
I'm an amateur photographer. I have Video, Mobile, Camera, Drone, etc. My goal is to sync all data on the right time and add GPS tag.
I end on configure everything on UTC (except mobile), and add after GPS tag that is on UTC also.
Main problem is how to determine correct timezone based on where the picture has been taken, and if I have to, since all my mobile photos has the timezone (and daylight savings) applied when taking video/photo.
I'm using now an OPEN API for having the correct GMT based on the geolocation and time/date.
Am I doing it right? Am I interpretating DATE/TIME changes correctly? I saw after that Lightroom changes based on the date/time info and the place it's used (photos).
It's a mess.
Having a weird problem with Paypal API. I'm using the Subscriptions API an before creating a subscription, I need to create a plan. In the Sandbox enviroment, the resource /billing/plans (https://api.sandbox.paypal.com/v1/billing/plans) works fine, but in Live mode (https://api.paypal.com/v1/billing/plans) I get ´404 Not Found´ with an empty body. Didn't found any hint at the docs. Any ideas?
https://developer.paypal.com/docs/api/subscriptions/v1/
Paypal's customer service is very poor. We will not get any answer from them.
Temporary, we can use backend to create via https://www.paypal.com/billing/plans/plan/create
I contacted the Merchant Technical Support (https://www.paypal-support.com/s/?language=en_US), they made a correction and now it's working again.
A couple of easy mistakes you could have made which I made which give rise to 'the blank screen'. A very easy one: Check that your country codes comply with the iso standards. I was using UK instead of GB. Particularly your shipping address. You can replicate this error by putting in the wrong country code.
Also ensure that your start_date is greater than the current date. The test samples contain old start dates which are behind current dates. Increment the date function with 36000 instead of 3600 to ensure that your start date is greater than an extra hour from your current date or just hardcode a very late date. Your server might be operating at a different timezone.
The token passed was not found in the system....If you have a blank screen it is likely that the access token is not being passed after the 'first run' because you do not have an approval link as a result of the pre-passing error. It sounds like it could be a basic content error but you have likely checked for this.
Check the runtime log file and look out for the approval link. A successful 201 pass will give you something like the following.
"links":
[
{
"href":"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-22608875RF361971P",
"rel":"approval_url",
"method":"REDIRECT"
},{
"href":"https://api.sandbox.paypal.com/v1/payments/billing-agreements/EC-22608875RF361971P/agreement-execute",
"rel":"execute",
"method":"POST"
}
]
These are some of the errors that I have encountered which might be of use to you perhaps.
I am currently creating an app, in which the user is able to book devices (which are provided by a json file) for a certain time period (start date - end date). I was planning to use a online calendar, such as http://30boxes.com/welcome.php to check if the requested device is currently in use by another user at this period of time.
What might be the best strategy to parse that online calendar?
just noticed this website has an API, which makes it super-easy to set and get the calendar data. I feel stupid right now: http://30boxes.com/api/
Integrated Amazon Product Advisement API with my own application, It's working fine but the problem is:
To access the API we need time stamp, when I put the code on the server ( which is in other country), and used the server time stamp, then API gave the following error in the XML: "Request has expired. Timestamp date is XXXX-XX-XXTXX:XX:XXZ",
but when I enter my own time zone where currently I am, then its start working fine. Why API is working fine with client side timestamp, on the other hand all calculation related to API are happening on the server side.
I consult the following Developer document of Amazon API, but no avial.
Product Advertising API Developer GuideAPI Version 2011-08-01
var currentdate = new Date();
currentdate.toISOString();
This is how I got the time stamp for Product Advertising Api.
I consult the following Developer document of Amazon API, but no avial. Product Advertising API Developer GuideAPI Version 2011-08-01
Hum, this document clearly state the Timestamp parameter MUST be represented in Universal Time (UTC); You cannot send a local time, unless, by chance (which might be the case for your personal location) you happen to be on the same time as UTC:
"• Timestamp—Required. There is no default value. The time stamp you use in the request must be a
dateTime object, with the complete date plus hours, minutes, and seconds (for more information, go
to http://www.w3.org/TR/NOTE-datetime).This is a fixed -length subset of the format defined by ISO
8601, represented in Universal Time (GMT): YYYY-MM-DDThh:mm:ssZ (where T and Z are literals).
Important
If you are using .NET you must not send overly specific time stamps, due to different
interpretations of how extra time precision should be dropped. To avoid overly specific time
stamps, manually construct dateTime objects with no more than millisecond precision."
I have an online website portfolio and I want to put their the current time in our country and also I want to put the weather update there. If my clients browse it they will see the time in our country.
My question is:
What script should I used?
Example: I live in Philippines so thats GMT+08:00
Then, when someone browse my website from any country they will see the Philippine current time not their computer's time.
Load the time on client side that is through java script instead of server side. Then time will be displayed based on client side time zone.
--Sameer