VCal time change with change in system time zone - outlook

In my application, a mail sended with attachment of Vcal for add booking in Microsoft Outlook but server in different time zone and client in different time zone so vcal time change accoring to current Outlook time zone.
If I set same time zone on both server and client then vcal show corret time.
My current format of vcal as:
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VEVENT
DTSTART:20100712T191500Z
DTEND:20100712T194500Z
SUMMARY:Meditation with FNF LNL
DESCRIPTION:You have booked an appointment.
LOCATION:Tech Site 1 (Marriott Room1)
END:VEVENT
END:VCALENDAR
Please suggest any format of vcal so it independent on outlook time zone.
I add DTSTART time in vb.net
startDate.ToUniversalTime().ToString("yyyyMMdd\THHmmss\Z")
Is any format in vcal so it independent on time zone

These dates/times should be in GMT and should work across timezones.

Remove the 'Z' at the end of the start and end times.

Related

Microsoft PowerAutomate

I am currently building an out of office workflow in Microsoft powerautomate for Teams. When a request for 8/19/20 gets submitted it gets changed to 8/20/20 and same thing with the end date. Is there a way to set a it so it shows the actual dates selected?
So i think this is happening due to Default UTC time zone is used by Power Automate. Here is a flow that uses the Convert time zone action with a base time of utcNow(). Convert the time to needed timezone and then used an Update item action to update a date field with that converted time value. The correct time shows up in my SharePoint list
Hope this may help you.

how to change time zone in reports

In my application the time zone is (UTC-05:00) New York Eastern Time(ET).while creating report the date field shows 5:30 hr variation.
For example
Application Report
sdate 7:30 1:PM
I am using BI publisher report.
please any one help me How to change time zone in BI publisher report.
I have tried the below steps
Set Preferences-->Regional-->Time Zone(as (UTC+05:30) Calcutta Indian Time(IT) ).
But I am not able to set time zone for the report.
You can set the time zone in "my account" option.
check this link for more detail.
"https://docs.oracle.com/cd/E23943_01/bi.1111/e22257/get_start.htm#BIPUG133"

Should I store the local time for events instead of UTC?

I am currently storing events of some entities in UTC time but I am not sure if I should do that in this case. Imagine there's an event at 10pm local time (-4h UTC) and a mobile App fetches "todays events". This could e.g. look like this:
App sends request to fetch all clubs in the near location
After receiving all clubs it sends a request to get all events for today. It therefore sends the local time Sun. 10pm to the server.
The server would convert the local time of the mobile device to UTC Mon. 1am and fetch all events from Monday. But of course that was not what I wanted.
Fetching all events from the clubs and convert them to their local time using their local time offset information is not really a great solution.
So wouldn't it be better to just store all events in local time? In that case the mobile App would send its local time to the server which would be able to query all events from the clubs in local time as well.
This sounds much simpler to me but I am not sure if I overlook something.
So what would I do in this case?
Yes, storing everything in UTC is probably the best solution.
You don't say how you are "storing" the dates/times, but if you are using Dates or Joda equivalents, then you should know that their underlying representation is effectively in UTC (they represent a moment in time as an offset in milliseconds since the "Epoch", which is Midnight, Jan 1, 1970 UTC). These dates only have a timezone when you format them as Strings.
Most databases do something similar (store the date in a common timezone, usually UTC). The major exception that I've found is the generally available date-time related column types in MS SqlServer which by default store everything in the local timezone of the server.
Also be aware that if you use SQLite, and you store a date/time by passing a String in SQL that contains a timezone, SQLite will store it without warning, but will ignore the timezone and assume that the timezone is UTC, giving you a result other than what you might expect.
For more on this, see my (old) blog post at http://greybeardedgeek.net/2012/11/24/java-dates/
The other answer is correct. Some more thoughts here.
A time zone is more than the offset from UTC mentioned in the Question. A time zone is also the set of past, present, and future rules for anomalies such as Daylight Saving Time. You should refer to a time zone by its proper name, continent plus Slash plus city or region. Never use the 3-4 letter codes such as EST or IST.
To search for events in the user's "today", you must know the user’s time zone. For example, a new day dawns earlier in Paris than in Montréal. After the stroke of midnight in Paris we still have a few hours of “yesterday” left to go in Montréal.
While you can make a guess as to the user’s time zone, the most reliable way is to ask the user.
DateTimeZone zone = DateTimeZone.forID( "America/Montreal" );
DateTimeZone now = DateTimeZone.now( zone );
DateTime today = now.withTimeAtStartOfDay();
DateTime tomorrow = today.plusDays( 1 );
// Search for events that start >= today AND that start < tomorrow.
To search Joda-Time objects, use the Comparator built into DateTime. That comparator works across objects of various time zones.
To query a database, convert that pair of DateTime objects into java.sql.Timestamp objects. You do that by extracting and passing the count of milliseconds since the epoch of 1970 in UTC.
long m = today.getMillis();
java.sql.Timestamp tsToday = new java.sql.Timestamp( m );

Parse.com - Who sets updatedAt and createdAt properties?

Title is pretty much the question, when PFObject is created what values are stored in updatedAt and createdAt properties? Are those values from local device time or they are world time and 100% correct.
I need somehow to store a current world date, without letting user to trick my app by switching the date in setting.
Parse.com set it for you in order to let you keep track of the created date and updated date. Time zone is PST so that when you should set PST as your time zone from your time handler object and it will offset it for you automatically.
EDIT: I have this experience before when I was working with my Indian coworkers. The default time zone GMT and it will not work unless Parse.com returns GMT time zone. So, we have to set PST as time zone in our time handler object and it will offset properly.
You should consider those values are set / updated by parse when data hits the server and treat them as almost private as you don't have direct control. If you need to protect some information then you should use cloud code to update it and set appropriate ACLs to prevent access to it from other routes.

Can TeamCity 6.0.3 Be Set to Show Time in a 12-hour Format?

In TeamCity 6.0.3, is there a way to set the time format to show 12-hour time format instead of 24-hour time format? For example, I would like times to show 2:00 PM instead of 14:00. I found the user-specific setting to show time in the user's timezone but this still displays time in 24-hour format.
I'm afraid, we don't provide such a possibility.

Resources